Not able to format namenode in hadoop-2.6.0 multi node installation

I am trying to install Hadoop-2.6.0 in ubuntu 14-04 machine. 5 node cluster. But when I format the namenode, it gives me the following error




No command 'hdfs' found, did you mean: Command 'hfs' from package
'hfsutils-tcltk' (universe) Command 'hdfls' from package 'hdf4-tools'
(universe) hdfs: command not found




And in the .bashrc file, I can't understand what path to give for Hadoop_home/bin, as I don't see any folder "bin" inside Hadoop installation.



Please guide me.



Answers

Add these lines in .bashrc:



export HADOOP_HOME=/path/to/your/hadoop/installation
export PATH=$PATH:$HADOOP_HOME/bin


As for,




I don't see any folder "bin" inside Hadoop installation




Check whether you have binary distribution or source. Download hadoop-2.6.0.tar.gz from Hadoop Distributions, in case you have source distribution.