Steps required to complete Hadoop 2.4.x installation

1.    Install  Java 

       you should have installed java 6 or more version of your ubuntu machine,
       if not install it by executing this command

      sudo apt-get install java-<version>jdk.

2.    Password less ssh among your cluster nodes. If you intended for single
       node setup, then do password less ssh for your own localhost.

      
     $ ssh-keygen -t rsa
     $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
     $ chmod 0600 ~/.ssh/authorized_keys


3.    Download Hadoop 2.4.0 <version>
       you can download and unpacked it in any directory you want, in our case
       it is /home/<username>/hadoop

4.    Configuration and Variable to set.

       4.1
       Go to bash file located in /home/<username>/.bashrc
       set these variables in bashrc file.
      4.2
       Configure hadoop configuration files. These file used for setting your hadoop cluster  infrastr-ucture according to your need .Configuration files can be found in this location.

       $HADOOP_HOME/etc/ hadoop/

       Edit core-site.xml
   
       Edit hdfs-site.xml
       

    
       Edit mapred-site.xml

       Edit yarn-site.xml
   
       4.3
 
       Formate NameNode
   
       Now format the namenode using following command, make sure that 
       Storage directory is

5.   Start  Hadoop Cluster

      Lets start your hadoop cluster using the scripts provides by hadoop. Just
      navigate to your hadoop sbin directory and execute scripts one by one.
      Now run start-yarn.sh script.
     
   
5.   Access Hadoop Cluster
     you can access namenode or hdfs by typing below url to your browser
      address bar
      http://localhost:50070

      for access yarn job runner web UI
      http://localhost:50030

6.   Varify Installation
      run jps on cosole and if console has output similar to this then your hadoop
      cluster is running.

$ jps
      22859 Jps
      18989 DataNode
      12356 ResourceManager
      15897 NodeManager
      23564 NameNode