简体   繁体   English

Hadoop-名称节点将无法启动

[英]Hadoop - namenode will not start

I am trying to run hadoop on ubuntu server. 我正在尝试在Ubuntu服务器上运行hadoop。 After i start all services and typ JPS I get 启动所有服务并键入JPS后,我得到了

hduser@HDFS1:/usr/local/hadoop/etc/hadoop$ jps
5938 DataNode
6133 SecondaryNameNode
6287 ResourceManager
6431 NodeManager
6751 Jps

I believe I should NameNode along with the secondary namne node. 我相信我应该将NameNode与辅助namne节点一起使用。

The hdfs-site.xml is hdfs-site.xml是

<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/usr/local/hadoop_tmp/hdfs/datanode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/usr/local/hadoop_tmp/hdfs/datanode</value>
</property>
</configuration>

I have also tried the configuration from another question similar to this with no luck. 我也尝试过另一个与此类似的问题的配置,但是没有运气。

I have fixed the issue. 我已经解决了这个问题。 For some reason the it did not format right the first two times i tried it. 由于某种原因,它在前两次尝试中都没有正确格式化。 When I executed namenode -recover I got an error message saying it had not been formatted. 当我执行namenode -recover时,出现一条错误消息,提示它尚未格式化。 Thanks for the help 谢谢您的帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM