Hadoop中的datanode没有启动

这是异常

at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:812)
at java.lang.Thread.run(Thread.java:724)
2017-04-12 00:32:16,913 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: Block pool <registering> (Datanode Uuid unassigned) service to node1/192.168.136.136:8020
2017-04-12 00:32:16,913 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool <registering> (Datanode Uuid unassigned)
2017-04-12 00:32:18,921 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
2017-04-12 00:32:18,926 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
2017-04-12 00:32:18,941 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SH


原因在于重新格式化以后,namenode节点上opt/hadoop2/dfs/name/current该目录下的version中的clusterID和datanode节点上opt/hadoop2/dfs/data/current文件夹下的version中的clusterID不一样。需要将namenode上的clusterID复制到datanode上即可。

你可能感兴趣的:(Hadoop中的datanode没有启动)