To know more, Register for Online Hadoop Training at WizIQ.
Click here : http://www.wiziq.com/course/21308-hadoop-big-data-training
A complete guide to Hadoop Installation that will help you when ever you face problems while installing Hadoop !!
10. Hadoop Configuration
• Setup Hadoop Environment Variables:
• hduser@ip-10-45-133-21$cd ~
• hduser@ip-10-45-133-21$vi .bashrc
Copy & Paste following to the end of the file:
#Hadoop variables
export JAVA_HOME=/usr/lib/jvm/jdk/
export HADOOP_INSTALL=/usr/local/hadoop
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
###end of paste
hduser@ip-10-45-133-21$ cd /usr/local/hadoop/etc/hadoop
hduser@ip-10-45-133-21$ vi hadoop-env.sh
#modify JAVA_HOME
export JAVA_HOME=/usr/lib/jvm/jdk/
11. ****Re-login into Ubuntu using hdser and
check hadoop version******
hduser@ip-10-45-133-21$ hadoop version
Hadoop 2.2.0
Subversion
https://svn.apache.org/repos/asf/hadoop/
common -r 1529768
Compiled by hortonmu on 2013-10-
07T06:28Z
Compiled with protoc 2.5.0
From source with checksum
79e53ce7994d1628b240f09af91e1af4
This command was run using
/usr/local/hadoop-
2.2.0/share/hadoop/common/hadoop-
common-2.2.0.jar
At this point, Hadoop is installed.
17. Tried checking again:
1) SSH Certification creation
2) ssh localhost
3) vi hadoop-env.sh
4) vi hdfs-site.xml
5) Namenode and datanode directories
6) reformatted namenode
7) Started the services
That’s it after that it started working as below screens. Not sure what fixed the issue
as observed in next slide
• Error1: WARN util.NativeCodeLoader: Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable ….
• Error2: Localhost: Permission Denied (Publickey)…
21. THANK YOU!
Enroll now for Hadoop and Big Data Training @ WizIQ.com
Visit: http://www.wiziq.com/course/21308-hadoop-big-data-training
For more information, feel free to contact us at courses@wiziq.com