hadoop-eclipse configuration

1. Device: Ubuntu image : ubuntu-18.04.2-desktop-amd64.iso

       hadoop:  hadoop-2.6.5.tar.gz

       jdk:   jdk-linux-x64.tar.gz

       Eclipse: eclipse-java-2020-03-R-linux-gtk-x86_64.tar.gz

2. Install SSH, set SSH passwordless login

  1) Update software resource list   

$sudo apt-get install update

     (If it doesn't work, you can use $ sudo apt install update)

  2) Install SSH server

$ sudo apt-get install openssh-server 

  3) Log in to SSH

$ ssh localhost

  4) Log out of ssh localhost 

$ exit 


  5) Check whether the .ssh folder exists under the user (note that there is a "." In front of ssh, which is a hidden folder), enter the command

    $ ls -a / home / wangyuyang

  6) Create two files id_dsa and id_dsa.pub in the .ssh folder. This is a pair of private and public keys of ssh, similar to keys and locks, append id_da.pub (public key) to the authorized key go with

$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

  7) Add the public key to the public key file used for authentication, where authorized_keys is the public key file used for authentication

    $cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

$cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

  8) Verify that ssh has been installed successfully and log in to the machine without a password

$ ssh localhost

  9) Exit

$ exit 

 3. jdk configuration

  1) Create the jvm directory under the / usr / lib directory

    $ sudo mkdir /usr/lib/jvm

  2) Unzip jdk-linux-x64.tar.gz to / usr / lib / jvm

    $ sudo tar zxvf jdk-linux-x64.tar.gz -C /usr/lib/jvm

 

Guess you like

Origin www.cnblogs.com/0error0warning/p/12704509.html