Ubuntu – “Command not found” message while executing “hadoop namenode -format”

hadoopsoftware installation

I have followed this tutorial for my hadoop setup up to "Format the new Hadoop File System" and I get the "Command not found" message when I enter

hadoop namenode -format

How should I proceed?

Best Answer

In your ~/.bashrc, instead of writing

export HADOOP_INSTALL=/usr/local/hadoop

change it to

export HADOOP_INSTALL=/usr/local/hadoop/bin/hadoop

I was facing the same issue for a long time. This worked for me.

Or try this:

/usr/local/hadoop/bin/hadoop namenode -format
Related Question