我正在关注此tutorial。
start-all.sh
输出:
hduser@ubuntu12:~/hadoop/sbin$ start-dfs.sh
15/07/27 15:24:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:12 WARN conf.Configuration: bad conf file: element not <property>
Starting namenodes on [localhost]
localhost: starting namenode, logging to /home/hduser/hadoop/logs/hadoop-hduser-namenode-ubuntu12.out
localhost: starting datanode, logging to /home/hduser/hadoop/logs/hadoop-hduser-datanode-ubuntu12.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hduser/hadoop/logs/hadoop-hduser-secondarynamenode-ubuntu12.out
15/07/27 15:24:29 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
15/07/27 15:24:30 WARN conf.Configuration: bad conf file: element not <property>
Hadoop运行良好,我运行curl http://localhost:50070/
证明了这一点
我知道WARN util.NativeCodeLoader Unable to load native-hadoop library
&#39; answer
但我无法弄清楚是什么导致WARN conf.Configuration: bad conf file: element not <property>
。