Operating system: Ubuntu Server 14.04.3 LTS
STEP1: Add a Hadoop dedicated user (optional, for security reasons), in this case the user name is HM
STEP2: Install related packages:
SSH: This example uses Openssh-server, Openssh-client.
Java: This example uses OPENJDK-7-JDK
Input command
[Email protected]:~$ dpkg-l|grep-e SSH
Used to view the installation status of an SSH package. II represents a successful installation.
If the above package is not already installed, install it using the command apt-get
[Email protected]:~$ apt-get Install Openssh-server
[Email protected]:~$ apt-get Install OPENJDK-7-JDK
Verify the installation and use:
1. JPS-JVM Process viewing tool, to be used in the future to view the Hadoop daemon
[Email protected]:~$ JPS
2. SSH-Standalone password-free login
- F ~/.ssh/Id_dsahm@u14s64: ~$ CD ~/.ssh/HM@u14s64: ~$ cat id_dsa.pub >> Authorized _keyshm@u14s64: ~$ ssh localhost
After successful login, enter exit to exit the current SSH login.
Build a single-node Hadoop application environment