Java.io.IOException incompatible appears after reformatting the Namenode Clusterids

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.