Home > Software > BIGDATA > HADOOP
Interview Questions   Tutorials   Discussions   Programs   Videos   Discussion   

HADOOP - How to Install Hadoop -Setting up a Single Node Cluster

asked marvit November 16, 2014 08:58 PM  

How to Install Hadoop -Setting up a Single Node Cluster


1 Answers

answered By marvit   0  

Steps 1) Download Hadoop ,unzip, rename, change ownership & move to /usr/local/

$ sudo tar -xvzf hadoop-***.tar.gz
$ sudo mv hadoop-*** hadoop
$ sudo chown -R hduser:hdgroup Hadoop
$ sudo mv Hadoop /usr/local/

2) Add below lines to .bashrc file : $ vim .bashrc

export HADOOP_HOME=/usr/local/Hadoop

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0


3) Add below line to conf/hadoop-env.sh file

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0

$ sudo mkdir -p /app/hadoop/tmp
$ sudo chown hduser:hdgroup /app/hadoop/tmp

4) Add to conf/core-site.xml

  <description>A base for other temporary directories.</description>

  <description>The name of the default file system.  A URI whose
  scheme and authority determine the FileSystem implementation.  The
  uri's scheme determines the config property (fs.SCHEME.impl) naming
  the FileSystem implementation class.  The uri's authority is used to
  determine the host, port, etc. for a filesystem.</description>

5) Add to conf/mapred-site.xml

  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.

6) Add to conf/hdfs-site.xml

  <description>Default block replication.
  The actual number of replications can be specified when the file is created.
  The default is used if replication is not specified in create time.

7) Format namenode

$CD /usr/local/Hadoop $ bin/hadoop namenode –format
8) Start and Stop Cluster

/usr/local/hadoop$ bin/start-all.sh
    /usr/local/hadoop$ bin/stop-all.sh
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!