Jameswz / hadoop-3.2.2-conf

0 stars 0 forks source link

datanode can't be started with exception after starting hadopp dfs #2

Open Jameswz opened 3 years ago

Jameswz commented 3 years ago

java.io.IOException: Incompatible clusterIDs in /home/autonomous/hadoop-3.2.2/dfs/dataNode: namenode clusterID = CID-71d72dfc-b5ec-46cc-ab8b-3c2368e6beda; datanode clusterID = CID-8502a85b-00c2-4254-a4bf-5653661a9ac5

Jameswz commented 3 years ago

stop dfs, go find out VERSION file in datanode and namenode folders based on your Hadoop setup. get clusterID from namenode VERSION file and use it to replace the clusterID in datanode VERSION file. then restart dfs.