Ubuntu: hadoop command not found Ubuntu: hadoop command not found hadoop hadoop

Ubuntu: hadoop command not found


Your current working directory is probably not part of your path.That is default on linux systems.

If you are in the same directory, where your hadoop file is, run that command with an relative path, like: ./hadoop


HOME DIRECTORY:

/home/hadoop is a home directory created by linux similar to Document and settings in windows.

Open your terminal and type:

ls -l /home/hadoop

Post your result for this command: ls -l /home/hadoop

SETTING GLOBAL PATH:

Go to /home/hadoop and open .bashrc in text editor.Add these lines at the end:

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

Save and exit. Now type, this in your teminal:

echo $PATHecho $HADOOP_HOME

If these commands shows correct directories, try hadoop command. It should work.

Post your result for these command: echo $PATH and echo $HADOOP_HOME


  1. Go to Hadoop-x.x.x/bin folder
  2. check for hadoop folder there
  3. run ./hadoop version