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

 

 

 

 

 

posted @ 2019-11-23 00:48  马鞍山  阅读(548)  评论(0)    收藏  举报