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

How to reformat namenode in Hadoop

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to reformat namenode in Hadoop. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

First, operate on the master master node

1. Delete the data, name and namesecondary folders.

2. Delete four folders in the mrlocal directory

3. Delete all files in the logs folder

Second, operate on the node node

1. Delete all files in hdfs/data

2. Delete all files in mrlocal

3. Delete all files in logs

After the basic deletion is completed. Start reformatting namenode

III. Format namenode

[hadoop@master hadoop] $bin/hadoop namenode-format

After the format is successful. Restart the cluster

Restart the cluster

[hadoop@master hadoop] $bin/start-all.sh

5. Check the start-up of the cluster

[hadoop@master hadoop] $jps3851 Jps3744 TaskTracker3622 JobTracker3279 NameNode3533 SecondaryNameNode3395 DataNode

If you see

[hadoop@master hadoop] $jps

3851 Jps

3744 TaskTracker

3622 JobTracker

3279 NameNode

3533 SecondaryNameNode

3395 DataNode

Then it means that the startup is successful.

The above is how to reformat namenode in the Hadoop shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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