1. 程式人生 > >CentOS hadoop配置錯誤Incorrect configuration: namenode address dfs.namenode.servicerpc-address ...

CentOS hadoop配置錯誤Incorrect configuration: namenode address dfs.namenode.servicerpc-address ...

# ./sbin/start-all.sh                    
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
13/09/09 16:50:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured
.
Starting namenodes on []
localhost: starting namenode, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/hadoop-root-namenode-localhost.out
localhost: starting datanode, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/hadoop-root-datanode-localhost.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/hadoop-root-secondarynamenode-localhost.out
13/09/09 16:50:37 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/yarn-admin-resourcemanager-localhost.out

localhost: starting nodemanager, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/yarn-root-nodemanager-localhost.out

解決方法在:

etc/hadoop/core-site.xml中增加如下配置

<property>

<name>fs.default.name</name>
<value>hdfs://127.0.0.1:9000</value>
</property>

重新啟動,問題解決

hadoop版本:hadoop-2.1.0-beta