Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if hadoop2.5.2 starts up and finds that DataNode is not started?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the hadoop2.5.2 startup found that DataNode did not start how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.

After hadoop2.5.2 starts successfully, check it with jps: it feels like DataNode is missing.

It is true that DataNode is missing.

View the log:

Judging from the journal, the underlined part illustrates the problem.

The clusterID of datanode does not match the clusterID of namenode.

Solution:

According to the path in the log, cd / home/hadoop/dfs

You can see the data and name folders

Copy the clusterID in VERSION under name/current to VERSION under data/current, overwriting the original clusterID

Keep the two in line

-> clusterID in name/current/VERSION: CID-da3018e4-2d0b-4ceb-9e7a-46319f0e32c8

Replace clusterID in data/current/VERSION.

Then restart, execute jps after startup, and view the process

The cause of the problem: after formatting dfs for the first time, hadoop is started and used, and then the format command (hdfs namenode-format) is re-executed, where the clusterID of namenode is regenerated and the clusterID of datanode remains unchanged.

Note: if you are in a cluster: modify the clusterID of the VERSION of each node to make it consistent with the clusterID in the master node (/ home/hadoop/dfs/name/current/VERSION).

Thank you for reading this article carefully. I hope the article "what to do when hadoop2.5.2 starts and DataNode is not started" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report