2015-02-12 110 views
0
Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf 

開始namenodes:啓動名稱節點,記錄到/ usr /本地/ Hadoop的/ hadoop- 2.6.0/logs/hadoop -inreens -namenode -infreens-desktop.out localhost:啓動datanode,記錄到/usr/local/hadoop/hadoop-2.6.0/logs/hadoop-ingreens-datanode-ingreens-desktop。出 錯誤:無法找到或加載主類org.apache.hadoop.hdfs.tools.GetConf錯誤:無法找到或Hadoop上加載主類org.apache.hadoop.hdfs.tools.GetConf上[] 本地主機

和JPS顯示

13033個JPS 12873 DataNode會

使用Hadoop 2.6.0

建議立即進行刪除我該怎麼辦。

+0

你可以發佈您的配置文件? – 2015-02-12 11:21:56

回答

1

我有同樣的問題!我解決了那個改變.bashrc文件。這些行添加到$ HOME/.bashrc文件的末尾,改變了Hadoop的安裝路徑:

<code> 
#Set hadoop-related enviroment variables 
export HADOOP_PREFIX=/usr/local/hadoop-2.7.1 
export HADOOP_HOME=/usr/local/hadoop-2.7.1 
export HADOOP_MAPRED_HOME=${HADOOP_HOME} 
export HADOOP_COMMON_HOME=${HADOOP_HOME} 
export HADOOP_HDFS_HOME=${HADOOP_HOME} 
export YARN_HOME=${HADOOP_HOME} 
export HADOOP_CONFDIR=${HADOOP_HOME}/etc/hadoop 
# Native path 
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native 
export HADOOP_OPTS="-Djava.library.path=${HADOOP_PREFIX}/lib/native" 
export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native:$JAVA_LIBRARY_PATH 
# Add Hadoop bin/ directory to PATH 
export PATH=$PATH:$HADOOP_HOME/ 
export PATH=$PATH:$HADOOP_HOME/bin 
</code> 

我希望幫助別人

相關問題