Hadoop Datanode failed to start error

Source: Internet
Author: User

In the process of starting Hadoop distributed deployment, we found that Datanode did not start properly, and looked at the log to find the error:

Java.io.IOException:Incompatible clusterids In/opt/hadoop-2.5/dfs/data:namenode Clusterid = cid-adf01a94-ae34-4313-acf9-3781a425de66; Datanode Clusterid = cid-e00fcbab-47c2-4e73-8a4b-c8754dc9960e

The reason is because Datanode's Clusterid and Namenode's Clusterid mismatch: After the first format of DFS, Hadoop was started and used, and then the Format command (HDFs Namenode-format) was re-executed. At this point the clusterid of Namenode is regenerated, and Datanode's clusterid remains unchanged.

Solution: Enter the/opt/hadoop-2.5/dfs/name/current/directory, edit the version text file,

After you restart DFS, change the value of Clusterid cid-adf01a94-ae34-4313-acf9-3781a425de66 to cid-e00fcbab-47c2-4e73-8a4b-c8754dc9960e The Datanode node returns to normal.

Hadoop Datanode failed to start error

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.