Ubuntu: hadoop command not found
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