hadoop hdfs formatting gets error failed for Block pool

后端 未结 2 2043
谎友^
谎友^ 2020-12-28 09:49

After formatting my hdfs, I get the following errors:

2015-05-28 21:41:57,544 WARN org.apache.hadoop.hdfs.server.common.Storage: java.io.IOException: Incompa         


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 10:44

    2015-05-28 21:41:57,544 WARN org.apache.hadoop.hdfs.server.common.Storage: java.io.IOException: Incompatible clusterIDs in /usr/local/hadoop/dfs/datanode: namenode clusterID = CID-e77ee39a-ab4a-4de1-b1a4-9d4da78b83e8; datanode clusterID = CID-6c250e90-658c-4363-9346-972330ff8bf9

    Your namenode and datanode cluster ID does not match.

    Open your usr/local/hadoop/dfs/datanode/current/VERSION file and change:

    clusterID=CID-6c250e90-658c-4363-9346-972330ff8bf9
    

    to

    clusterID=CID-e77ee39a-ab4a-4de1-b1a4-9d4da78b83e8
    

    NOTE: Whenever you format your namenode, check the VERSION file of namenode and datanode. They both should have same clusterID and namespaceID. Otherwise your datanode, won't start.

提交回复
热议问题