Hadoop command not found
I got the same error, and this worked for me
I configured path variable in.bashrc.
export HADOOP_HOME=/opt/hadoop
export PATH= $PATH:$HADOOP_HOME/bin
Sometime restarting your machine can resolve the issue ,only if you have configured everything correct.
edit PATH
variable, if you want to be able to invoke hadoop without specifying full path
export PATH=$PATH:/usr/local/hadoop/bin/
if you want it for each bash profile then edit ~/.bash_profile
to include this
cd ~
vi .bashrc
export PATH=$PATH:<hadoop installation path>
for example replace <hadoop installation path>
by /usr/local/hadoop/bin/
As it seems from your commands history, you can replace hadoop
by /usr/local/hadoop/bin/hadoop
and it should help.
If you want to use hadoop
command without specifying the full path to it, you can edit ~/.bashrc
file and add the following line:
export PATH=$PATH:/usr/local/hadoop/bin/
Then you need to reopen your terminal.