1. 程式人生 > >Operation category READ is not supported in state standby

Operation category READ is not supported in state standby

min ORC gets nbsp pre bsp ice stat -a

Namenode 開啟HA之後,由於zookeeper異常,出現腦裂現象

執行

$./hdfs haadmin -getServiceState nn1                                                                                                                                                 

standby

$./hdfs haadmin -getServiceState nn2

standby

兩個互為HA的namenode節點均處於standby 狀態,隨後執行

$/hdfs haadmin -transitionToActive --forcemanual nn1

強行手工將namenode1狀態轉換為active

PS: serverID即namenodeID,可以訪問http://namenodeip:50070界面查看

Operation category READ is not supported in state standby