1. 程式人生 > >bash: hadoop:command not found

bash: hadoop:command not found

環境 bin 2.7 oop port spa software command code

這種情況應該是hadoop的bin環境變量沒有配置好

打開

gedit ~/.bashrc

修改

export HADOOP_HOME=/home/hadoop1/softwares/hadoop-2.7.3
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

保存

source ~/.bashrc

bash: hadoop:command not found