
上QQ阅读APP看书,第一时间看更新
Path configuration for Hadoop commands
We will now configure the path for the Hadoop bin directory. As a result of this, you will be able to execute Hadoop commands globally from any path. This configuration is similar to the one which we did for the Java installation, in step 6. To do this configuration, execute the following command:
$ sudo gedit ~/.bashrc
Once you execute this command, it will open up a configuration file. Add the following code at the end of the file:
# Hadoop Environment
export HADOOP_HOME="/home/hadoopadmin/hadoop-2.8.1/"
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin