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

HDFS reinitialization

2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Sometimes you will encounter HDFS access exception. You can reinitialize HDFS at this time, but try not to initialize it too many times, and you'd better turn off Hadoop (stop-all.sh) before initialization, otherwise all the previous files will be deleted and the slave node process will fail.

1. Shut down the hadoop cluster. / stop-all.sh

Delete the folder rm-rf / usr/local/src/hadoop-1.2.1/tmp before initializing 2.hadoop

3. (optional) delete hadoop log rm-rf / usr/local/src/hadoop-1.2.1/logs

4.hadoop initializes. / hadoop namenode-format

5. Start the hadoop cluster. / start-all.sh

6. Visit HDFS. / hadoop fs-ls /

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

  • Spring cxf configuration

    Version-- cxf-2.5.2

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

    12
    Report