hadoop: command not found a solution
After the installation is complete Hadoop, hadoop want to execute the command, the results being given: hadoop: command not found.
The reason is not hadoop installation path into the current path. There are two solutions:
One. Hadoop into the installation directory, when performing in front with hadoop command: ./ bin ./sbin
two. Add the installation path hadoop in / etc / profile file:
sudo vim /etc/profile
Joined:
export HADOOP_HOME = hadoop installation path of the machine
export PATH =
HADOOP_HOME/sbin:$PATH
Save and exit.
carried out:
Source / etc / Profile
----------------
Copyright: Original article is CSDN blogger "wzyyj", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.