Error:
Java.io.IOException:Incompatible clusterids In/data/dfs/data:namenode Clusterid = Cid-d1448b9e-da0f-499e-b1d4-78cb18ecdebb; Datanode Clusterid = cid-ff0faa40-2940-4838-b321-98272eb0dee3
Reason:
Each time Namenode format re-creates a namenodeid, and the data directory contains the last format Id,namenode format clears the Namenode, but does not empty the data under Datanode, Causes the startup to fail, all that is done is to empty all directories under data before each fotmat.
Workaround :
Method 1: Stop the cluster and remove all content from the data directory of the problem node. The Dfs.data.dir directory that is configured in the Hdfs-site.xml file. Reformat the Namenode.
Method 2: First stop the cluster and then modify the Datanode node directory/dfs/data/current/version to match the Namenode
If you think reading this blog gives you something to gain, you might want to click " recommend " in the lower right corner.
If you want to find my new blog more easily, click on " Follow me " in the lower left corner.
If you are interested in what my blog is talking about, please keep following my follow-up blog, I am " Liu Chao ★ljc".
This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Java.io.IOException incompatible appears after reformatting the Namenode Clusterids