两个namenode都是standby状态

日志信息
hdfs haadmin -transitionToActive nn1 报错

2019-10-18 03:49:21,586 INFO org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Triggering log roll on remote NameNode note02/192.168.18.101:9000
2019-10-18 03:49:21,591 WARN org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Unable to trigger a roll of the active NN
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category JOURNAL is not supported in state standby
        at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:87)
        at org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.checkOperation(NameNode.java:1774)
...

关闭所有hadoop进程

Zkcli.sh

执行

ls /
rmr /hadoop-ha

重新hdfs zkfc –formatZK

hdfs zkfc –formatZK

重新启动所有进程

你可能感兴趣的:(hdfs-储备室)