Namenode 未启动 [英] Namenode not getting started

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

问题描述

我在伪分布式模式下使用 Hadoop,一切正常.但是后来由于某种原因我不得不重新启动计算机.现在,当我尝试启动 Namenode 和 Datanode 时,我只能找到运行的 Datanode.谁能告诉我这个问题的可能原因?还是我做错了什么?

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?

我尝试了 bin/start-all.shbin/start-dfs.sh.

推荐答案

我遇到了 namenode 无法启动的问题.我使用以下方法找到了解决方案:

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

  1. 首先删除临时文件夹中的所有内容:rm -Rf (我是/usr/local/hadoop/tmp)
  2. 格式化namenode:bin/hadoop namenode -format
  3. 再次启动所有进程:bin/start-all.sh
  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天全站免登陆