4. Adding The Hadoop User
• Add the user
sudo useradd hadoop
• Assign the privilages
sudo visudo
hadoop ALL=(ALL) ALL
5. Install And Configure SSH
• Install SSH
sudo apt-get install ssh
• Generate the KeyPair
ssh-keygen –t rsa –P “”
• Make the SSH passwordless
cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
6. Install Java
• Add the “WEBUPD8″ PPA
sudo add-apt-repository pa:webupd8team/java
• Update the repositories
sudo apt-get update
• Begin the installation
sudo apt-get install oracle-java7-installer
7. Confiure Hadoop
• Download the latest stable release
http://apache.techartifact.com/mirror/hadoop/co
mmon/stable/hadoop-1.0.3.tar.gz
• Unpack the release
tar –zxvf hadoop-1.0.3.tar.gz
• Save the extracted folder to some convinient
location
9. • hadoop-env.sh
Set the JAVA_HOME variable
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
NOTE :
- Before moving further, create a directory, hdfs for
instance, with sub directories viz. name, data and tmp.
- Change the permissions of the directories created in the
previous step to 755