Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Praveen
Page 1
Hadoop Installation
e. Correct the file ownership and the permissions of the executables: (run
all once Ctrl+C and Shift + Insert)
sudo chmod a+x /usr/bin/java
sudo chmod a+x /usr/bin/javac
sudo chmod a+x /usr/bin/javaws
sudo chown -R <username>:<username> /usr/lib/jvm/jdk1.7.0
f. Check the version of you new JDK 7 installation:
i. Java -version
11.Install SSH Server
a. sudo apt-get install openssh-client
b. sudo apt-get install openssh-server
12.Configure SSH
a. ssh-keygen t rsa P
b. cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
13.Disabling IPv6 Run the following command in the extended(Alt + F2)
terminal
a. gksudo gedit /etc/sysctl.conf
14.Add the following lines to the bottom of the file
a. # disable ipv6
b. net.ipv6.conf.all.disable_ipv6 = 1
c. net.ipv6.conf.default.disable_ipv6 = 1
d. net.ipv6.conf.lo.disable_ipv6 = 1
15.Save the file and close it
16.Restart you Ubuntu
17.Download Apache Hadoop-1.1.2 and store it in Downloads folder (Shift + Ctrl
+ Y)
18.Unzip the file (open the terminal)
cd Downloads
sudo tar xzf hadoop-1.1.2.tar.gz
cd /usr/local
sudo mv /home/<username>/Downloads/hadoop-1.1.2 hadoop
sudo chown -R <username>:<username> hadoop
sudo chmod 750 hadoop
19.Open your .bashrc file in the extended terminal (Alt +F2)
gksudo gedit .bashrc
20.Add the following lines to the bottom of the file
# Set JAVA_HOME (we will also configure JAVA_HOME directly for Hadoop
later on)
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
# Add Hadoop bin/ directory to PATH
# Set Hadoop-related environment variables
Praveen
Page 2
Hadoop Installation
export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin
</property>
Page 3
Hadoop Installation
31.Format the HDFS
a. /usr/local/hadoop/bin/hadoop namenode -format
32.Add an application with the following command
Press the Start button and type Startup Applications
a. Name -- Hadoop
b. Command /usr/local/hadoop/bin/start-all.sh
c. Comment Start hadoop
33.Restart Ubuntu and login
34.Type jps on terminal
35.sudo apt-get install openjdk-7-jdk
36.jps
a. Name Node
b. Data Node
c. Job Tracker
d. Task Tracker
e. Secondary Name Node.
Praveen
Page 4