hadoop: command not found a solution

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 = H A D O O P H O M E / b i n : HADOOP_HOME/bin: 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.

Released eight original articles · won praise 1 · views 338

Guess you like

Origin blog.csdn.net/qq_43642864/article/details/103223205