Hadoop – All specified directories are failed to load

作者:Rui 发布时间:September 9, 2015 分类:JAVA,Hadoop,BIGDATA 浏览:1,307

Exception:

2015-09-22 15:57:54,057 WARN org.apache.hadoop.hdfs.server.common.Storage: java.io.IOException: Incompatible clusterIDs in /usr/local/hadoop/data/hdfs/datanode: namenode clusterID = CID-ad31220c-f6e0-4c35-8731-b448f323f208; datanode clusterID = CID-b6802f1e-304b-4df7-8957-23a2958fa83b
2015-09-22 15:57:54,058 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to Master/10.147.6.205:9000. Exiting. 
java.io.IOException: All specified directories are failed to load.

namenode 和 datanode的version 不一致导致的错误

解决办法:

打开 usr/local/hadoop/dfs/datanode/current/VERSION 改变

CID-b6802f1e-304b-4df7-8957-23a2958fa83b

为:

CID-ad31220c-f6e0-4c35-8731-b448f323f208

Tips:

当你重新格式化namenode时,都要重新检查 namenode 和 datanode的version 的是否一致,他们必须要有一致的clusterID和namespaceID 才能够正常启动datanode

标签: hadoop

添加新评论 »