首页 > 其他 > 详细

Could not determine own NN ID in namespace 'mycluster'

时间:2019-03-25 10:09:14      阅读:625      评论:0      收藏:0      [点我收藏+]

执行hdfs namenode -bootstrapStandby的时候报错如下

技术分享图片

19/03/24 18:00:48 ERROR namenode.NameNode: Failed to start namenode.
java.io.IOException: java.lang.IllegalStateException: Could not determine own NN ID in namespace ‘mycluster‘. Please ensure that this node is one of the machines listed as an NN RPC address, or configure dfs.ha.namenode.id
at org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:427)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1459)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1559)

 

原因是${HADOOP_HOME}/etc/hadoop/hdfs-site.xml中配置文件出错了

将主机名namenode2,写成了namdenode2

技术分享图片

Could not determine own NN ID in namespace 'mycluster'

原文:https://www.cnblogs.com/mkl34367803/p/10591873.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!