hadoop配置高可用后两个namenode都是standby状态ZK正常
异常信息:
at org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer$EditLogTailerThread.run(EditLogTailer.java:297)
2019-08-25 10:15:46,902 INFO org.apache.hadoop.ipc.Server: IPC Server handler 4 on 9000, call org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol.rollEditLog from 192.168.220.131:42262 Call#33 Retry#0: org.apache.hadoop.ipc.StandbyException: Operation category JOURNAL is not supported in state standby
解决方案:
[s@s2 bin]$ hdfs haadmin -transitionToActive --forcemanual nn1(namenode的名称)
You have specified the --forcemanual flag. This flag is dangerous, as it can induce a split-brain scenario that WILL CORRUPT your HDFS namespace, possibly irrecoverably.
It is recommended not to use this flag, but instead to shut down the cluster and disable automatic failover if you prefer to manually manage your HA state.
You may abort safely by answering 'n' or hitting ^C now.
Are you sure you want to continue? (Y or N) y
19/06/06 04:27:33 WARN ha.HAAdmin: Proceeding with manual HA state management even though
automatic failover is enabled for NameNode at s2/192.168.220.131:9000
19/06/06 04:27:34 WARN ha.HAAdmin: Proceeding with manual HA state management even though
automatic failover is enabled for NameNode at s1/192.168.220.130:9000

作者:IT_BULL
出处:http://www.cnblogs.com/itBulls/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
博客园-博客园。

浙公网安备 33010602011771号