Namenode没有开始 [英] Namenode not getting started
问题描述
我在伪分布式模式下使用Hadoop,一切正常。但之后因为某种原因必须重新启动计算机。现在,当我尝试启动Namenode和Datanode时,我只能找到Datanode正在运行。有谁能告诉我这个问题的可能原因吗?或者我做错了什么?
我试过 bin / start-all.sh
和 bin / start-dfs.sh
。
开始。我找到了一个解决方案,使用以下内容:
- 首先从临时文件夹中删除所有内容:
rm -Rf< tmp dir> ;
(我是/ usr / local / hadoop / tmp)
- 格式化namenode:
bin / hadoop namenode -format $
- 再次启动所有进程:
bin / start-all.sh
ol> - 再次启动所有进程:
- 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
您也可以考虑使用检查点回滚(如果启用了该检查点)。
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:
You may consider rolling back as well using checkpoint (if you had it enabled).
这篇关于Namenode没有开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!