问题:
[root@itcast01 current]# jps
2697 ResourceManager
2299 NameNode
2538 SecondaryNameNode
4602 Jps
2789 NodeManager
1.查看datanode.log显示内容为:
java.io.IOException: Incompatible clusterIDs in /itcast/hadoop-2.4.1/tmp/dfs/data:
namenode clusterID = CID-fd35a1c2-575b-444f-8000-de82348139f9;
datanode clusterID = CID-fb83adf2-2e87-49f6-b25b-f103217d0f81
namenode:目录为:/itcast/hadoop-2.4.1/tmp/dfs/name/current
#Mon May 30 09:46:26 CST 2016
namespaceID=1536949859
clusterID=CID-fd35a1c2-575b-444f-8000-de82348139f9
cTime=0
storageType=NAME_NODE
blockpoolID=BP-667186908-192.168.8.88-1464181819104
layoutVersion=-56
datanode:目录为:/itcast/hadoop-2.4.1/tmp/dfs/data/current
#Wed May 25 18:51:04 CST 2016
storageID=DS-0eaf8b1e-f550-4cc1-a9b4-9f21d57a703d
clusterID=CID-fb83adf2-2e87-49f6-b25b-f103217d0f81
cTime=0
datanodeUuid=6940cd4a-2960-4362-8c3c-b1c2a77b17e5
storageType=DATA_NODE
layoutVersion=-55
(1)将datanode中的clusterID与namenode中的一致。
然后stop-dfs.sh 再启动start-dfs.sh问题解决
[root@itcast01 sbin]# jps
5130 DataNode
2697 ResourceManager
5395 Jps
5029 NameNode
5294 SecondaryNameNode
2789 NodeManager