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

After Hadoop cluster formatting twice, how to fix

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

After Hadoop clustering has been formatted twice, you may need to redo the system, but there are also ways to recover:

1.cd / usr/local/hadoop-0.20.2-cdh4u5/

2.Cd / tmp/ (default is under tmp). As long as the hadoop cluster is installed, there will be a directory like hadoop-hadoop after ls.

3.Cd hadoop-hadoop/

4.Ls (then there will be a directory of dfs, where all the dfs files exist)

5.Cd / dfs

6.Ls (then there will be name,name where the master node exists)

7.Cd name

8.Ls (with current, where all file rights exist)

9.Cd current/

10.Ls

11.Vi version (then look at yourself ID)

twelve。 Clone another session, ssh H202 (a slave node)

13.Cd / tmp/

14.Cd hadoop-hadoop/

15.Cd dfs/ (at this point there is only data, no name, because there is no name from the slave node

16.Cd data/

17.Cd current/

18.Vi version, at this time to see if your ID is the same as that of the main node, if it is not the same as the main node, you can repair it, so you can restore it.

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

Internet Technology

Wechat

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

12
Report