ERROR namenode.NameNode: Failed to start namenode.
场景:
搭建hadoop3.1.1的HA分布式环境时,格式化node01节点后,在node02执行以下命令同步数据:
hdfs namenode -bootstrapStandby
报错
2019-02-07 21:18:14,687 INFO namenode.NameNode: createNameNode [-bootstrapStandby]
2019-02-07 21:18:15,484 WARN hdfs.DFSUtilClient: Namenode for mycluster remains unresolved for ID nn2. Check your hdfs-site.xml file to ensure namenodes are configured properly.
2019-02-07 21:18:15,493 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.Bootst