Standalone mode deployment I. Jdk installation command: sudoapt-getinstallopenjdk-6-jdk Directory:/usr/lib/jvm/java-6-openjdk configuration environment variable: sudogedit/etc/environment Add the following two lines in it: CLASSPATH =. /:/usr/lib/jvm/java-6-openjdk/libJAVA_HOME =/usr/lib/jvm/java-
Standalone deployment
I. Jdk Installation
Command: sudo apt-get install openjdk-6-jdk
Directory:/usr/lib/jvm/java-6-openjdk
Configure environment variables:
Sudo gedit/etc/environment
Add the following two lines:
CLASSPATH =./:/usr/lib/jvm/java-6-openjdk/lib
JAVA_HOME =/usr/lib/jvm/java-6-openjdk
PATH Add:/usr/lib/jvm/java-6-openjdk
Ii. New Hadoop users
Command: sudo addgroup hadoop
Sudo adduser -- ingroup hadoop
Sudo gedit etc/sudoers
Add Configuration:
After root ALL = (ALL) ALL, hadoop ALL = (ALL) ALL enables hadoop users to have root permissions.
Iii. ssh Configuration
Log on with a hadoop account.
Install openssh-server: sudo apt-get install openssh-server
Create an ssh key: ssh-keygen-t rsa-P ""
Enable ssh key: cat $ HOME/. ssh/id_rsa.pub >>$ HOME/. ssh/authorized_keys
Sudo/etc/init. d/ssh reload
Verify SSH configuration: ssh localhost
4. Install hadoop and change user ownership
The Hadoop version we use is the latest Hadoop-0.20.2, which can be downloaded from the official Apache Foundation Homepage
Bytes
A folder for the hadoop-0.20.2.
Installation Directory:/usr/local/hadoop
Change ownership: chown-R hadoop: hadoop