我正在設置一個Hadoop節點,但運行時$HADOOP_HOME/sbin/start-dfs.sh
會打印它找不到$HADOOP_HOME/bin/hdfs
。該位置的文件存在,但我可以很好地閱讀它。從start-dfs.sh腳本
登錄:
[email protected]:/opt/hadoop-2.7.3# sbin/start-dfs.sh
Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
Starting namenodes on []
localhost: starting namenode, logging to /opt/hadoop-2.7.3/logs/hadoop-root-namenode-hadoop.out
localhost: nice: ‘$HADOOP_HOME/bin/hdfs’: No such file or directory
localhost: starting datanode, logging to /opt/hadoop-2.7.3/logs/hadoop-root-datanode-hadoop.out
localhost: nice: ‘$HADOOP_HOME/bin/hdfs’: No such file or directory
Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
至於我可以告訴我的所有路徑變量設置正確(回聲$ HADOOP_HOME返回正確的目錄)。
是'HADOOP_HOME'根用戶設置以及細節? – Ambrish
@ Ambrish我將它們全部放在/ etc/environment中,我從根目錄運行所有東西,所以我認爲是這樣。 – cogm
「HADOOP_HOME」的值是多少? – Ambrish