Learn Geek languages like Big data,Hadoop,Hive,Pig,Sqoop ,flume,Cassandra,Hbase,Ruby On Rails,Python,Java and many more.

Wednesday 19 October 2016

Installation of Hadoop on Linux

Steps to Install hadoop on  ubuntu


1. Install Jdk 1.6 or greater here.
     to install jdk write 
 $ sudo apt-get install openjdk-8-jdk

2. Download the required hadoop .

3. Extract by tar xvzf hadoop-2.6.0.tar.gz

4. update the JAVA_HOME inside the hadoop-env.sh file.
--write
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386

5. Update your bashrc file by 

    $sudo gedit .bashrc

paste this export lines at the end of file

export HADOOP_HOME=/home/ratul/hadoop-2.6.0
export HADOOP_CONF_DIR=/home/ratul/hadoop-2.6.0/etc/hadoop
export HADOOP_MAPRED_HOME=/home/ratul/hadoop-2.6.0
export HADOOP_COMMON_HOME=/home/ratul/hadoop-2.6.0
export HADOOP_HDFS_HOME=/home/ratul/hadoop-2.6.0
export YARN_HOME=/home/ratul/hadoop-2.6.0

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386
export PATH=$PATH:/home/ratul/hadoop-2.6.0/bin

export HADOOP_USER_CLASSPATH_FIRST=true

6. modify your core-site.xml hdfs-site.xml and mapred-site.xml.

7. Install ssh on your system using sudo apt-get install ssh.

8. ssh localhost should log you in.

9. run the below two commands to save the auth keys.
       $ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
       $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

10. now your system is setup and installed with hadoop, format your namenode by

     $ hadoop namenode -format

11. To run your namenode,datanode,secondarynamenode,jobtracker and tasktracker.

     $ cd home/ratul/hadoop-2.6.0/sbin
     $./start-all.sh

12. You can view the namenode http://localhost:50070

13. You can view the cluster at http://localhost:8088

14. You can interact with hdfs using hadoop fs -ls /

19 comments:

  1. Thank you for sharing, I find this article is very helpful and easy to understand. Keep up the good work, guys!


    Web Hosting Services

    ReplyDelete
  2. sir i am not able to install hadoop-2.9.0 in kali linux please sir give me some information regarding installation and jdk8 are not support in kali linux

    ReplyDelete
    Replies
    1. hi bharat,
      install jdk---
      by using
      sudo apt-get install openjdk-8-jdk (for 32 bit)
      then
      extract the hadoop file
      by using
      tar xvzf hadoop-2.9.0.tar.gz

      Delete
  3. Your blog is very informative. Big data hadoop tutorial is very useful for my work. Keep up the good work.

    hadoop training in chennai

    ReplyDelete
  4. hi
    thank you for helping out this. this article is very useful for the kali linux or any other linux or ubuntu users.
    As I tried to get the output of the installation for two days. I ma extremly thank you for this. and please follow the vedio at the same time for those who are going to install the hadoop.
    link:
    https://www.youtube.com/watch?v=Ox6ttWTm0a0

    ReplyDelete
  5. Aptron Solutions provides Hadoop Training and placement likewise keeping at the top of the priority list to charge just a considerable price when compared to other Training institutes. Hence, the big data hadoop certification cost in Delhi is very ostensible. Aptron Solutions focuses to provide Hadoop Training with lab facilities to all students. The course timings and start date is likewise mentioned with the goal that participants can have a better understanding.
    For More Info: Hadoop Course in Delhi

    ReplyDelete
  6. Director however exactly seven full. Kind goal wind something they institution soon.

    ReplyDelete

if you have any query regarding geek languages,
email on arora.ratul@gmail.com