Namenode没有开始 [英] Namenode not getting started

查看:105
本文介绍了Namenode没有开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在伪分布式模式下使用Hadoop,一切正常。但之后因为某种原因必须重新启动计算机。现在,当我尝试启动Namenode和Datanode时,我只能找到Datanode正在运行。有谁能告诉我这个问题的可能原因吗?或者我做错了什么?



我试过 bin / start-all.sh bin / start-dfs.sh

解决方案

开始。我找到了一个解决方案,使用以下内容:


  1. 首先从临时文件夹中删除所有内容: rm -Rf< tmp dir> ; (我是/ usr / local / hadoop / tmp)
  2. 格式化namenode: bin / hadoop namenode -format
  3. 再次启动所有进程: bin / start-all.sh

  4. ol>

    您也可以考虑使用检查点回滚(如果启用了该检查点)。


    I was using Hadoop in a pseudo-distributed mode and everything was working fine. But then I had to restart my computer because of some reason. And now when I am trying to start Namenode and Datanode I can find only Datanode running. Could anyone tell me the possible reason of this problem? Or am I doing something wrong?

    I tried both bin/start-all.sh and bin/start-dfs.sh.

    解决方案

    I was facing the issue of namenode not starting. I found a solution using following:

    1. first delete all contents from temporary folder: rm -Rf <tmp dir> (my was /usr/local/hadoop/tmp)
    2. format the namenode: bin/hadoop namenode -format
    3. start all processes again:bin/start-all.sh

    You may consider rolling back as well using checkpoint (if you had it enabled).

    这篇关于Namenode没有开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆