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

965 views Asked by At

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.

1

There are 1 answers

1
Rajesh N On BEST ANSWER

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.