第一次启动的时候,jps和浏览器全部正常,但是我stop之后,再次重启的时候,datanode就不显示了
来源:1-13 -HDFS格式化及启停
慕的地7986880
2017-07-21
[root@ecs-3905 hadoop-2.6.0-cdh5.12.0]# jps 6756 Jps 6653 SecondaryNameNode 6383 NameNode [root@ecs-3905 hadoop-2.6.0-cdh5.12.0]# sbin/stop-dfs.sh 17/07/21 10:21:57 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Stopping namenodes on [ecs-3905] ecs-3905: Warning: Permanently added 'ecs-3905' (ECDSA) to the list of known hosts. ecs-3905: stopping namenode localhost: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. localhost: no datanode to stop Stopping secondary namenodes [0.0.0.0] 0.0.0.0: Warning: Permanently added '0.0.0.0' (ECDSA) to the list of known hosts. 0.0.0.0: stopping secondarynamenode 17/07/21 10:22:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable [root@ecs-3905 hadoop-2.6.0-cdh5.12.0]#
我把core-site.xml改成
<property> <name>fs.defaultFS</name> <value>hdfs://localhost:8020</value> </property>
namenode就不出现了,我把core-site.xml改成
<property> <name>fs.defaultFS</name> <value>hdfs://ecs-3905:8020</value> </property>
datanode就不出现了,
反正就是却一个namenode或者是datanode,请问这是什么情况?
是不是重新启动需要删除什么东西? 删除log?
[root@ecs-3905 hadoop-2.6.0-cdh5.12.0]# sbin/start-dfs.sh 17/07/21 10:20:09 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [ecs-3905] ecs-3905: Warning: Permanently added 'ecs-3905' (ECDSA) to the list of known hosts. ecs-3905: starting namenode, logging to /usr/local/src/app/hadoop-2.6.0-cdh5.12.0/logs/hadoop-root-namenode-ecs-3905.out localhost: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. localhost: starting datanode, logging to /usr/local/src/app/hadoop-2.6.0-cdh5.12.0/logs/hadoop-root-datanode-ecs-3905.out Starting secondary namenodes [0.0.0.0] 0.0.0.0: Warning: Permanently added '0.0.0.0' (ECDSA) to the list of known hosts. 0.0.0.0: starting secondarynamenode, logging to /usr/local/src/app/hadoop-2.6.0-cdh5.12.0/logs/hadoop-root-secondarynamenode-ecs-3905.out 17/07/21 10:20:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable [root@ecs-3905 hadoop-2.6.0-cdh5.12.0]# jps
写回答
1回答
-
一般这个地址定了就很少动了,你尝试格式化一下hdfs
042017-12-21
相似问题
datanode 启动失败
回答 4
启动spark 这样看比较明显吧
回答 5