Namenode 未启动 [英] Namenode not getting started
问题描述
我在伪分布式模式下使用 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.sh
和 bin/start-dfs.sh
.
推荐答案
我遇到了 namenode 无法启动的问题.我使用以下方法找到了解决方案:
I was facing the issue of namenode not starting. I found a solution using following:
- 首先删除临时文件夹中的所有内容:
rm -Rf
(我是/usr/local/hadoop/tmp) - 格式化namenode:
bin/hadoop namenode -format
- 再次启动所有进程:
bin/start-all.sh
- first delete all contents from temporary folder:
rm -Rf <tmp dir>
(my was /usr/local/hadoop/tmp) - format the namenode:
bin/hadoop namenode -format
- start all processes again:
bin/start-all.sh
您也可以考虑使用检查点回滚(如果您启用了它).
You may consider rolling back as well using checkpoint (if you had it enabled).
这篇关于Namenode 未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!