问题:
配置Hadoop集群时,一个节点的DataNode无法启动
排查:
查看hadoop-root-datanode-bigdata114.log文件,错误信息如下:
java.io.IOException: Incompatible clusterIDs in /root/training/hadoop-2.7.3/tmp/dfs/data:
namenode clusterID = CID-947a48a2-56aa-4566-85d6-b5987d0bfeca; datanode clusterID = CID-8c75bd62-98f6-4482-85f3-865cb9a0f70f
解决:
打开 /root/training/hadoop-2.7.3/tmp/dfs/data/current 下的VERSION文件(/tmp 是在 core-site.xml 中设置的hadoop临时目录):
#Thu Dec 13 00:00:49 CST 2018
storageID=DS-e242ac88-5b0f-402c-b138-7e29f583ec82
clusterID=CID-8c75bd62-98f6-4482-85f3-865cb9a0f70f
cTime=0
datanodeUuid=2ddcdd2a-9f76-4e3e-8cc3-9b9d44448936
storageType=DATA_NODE
layoutVersion=-56
将clusterID修改为CID-947a48a2-56aa-4566-85d6-b5987d0bfeca 即可
原文地址:https://www.cnblogs.com/cxc1357/p/10134817.html
时间: 2024-10-05 05:50:28