1.配置hadoop的环境变量bash_profile,配置内容如下
PATH=$PATH:$HOME/bin export PATH export JAVA_HOME=/usr/java/jdk1.7.0_79 export PATH=$PATH:$JAVA_HOME/bin export HADOOP_HOME=/home/hadoop-2.5.1 export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
2.通过如下命令将配置文件生效
source ~/.bash_profile
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/196517.html