hdfs haadmin -transitionToStandby --forcemanual nn0 强制转成standby状态
hdfs haadmin -transitionToActive --forceactive --forcemanual nn0 强制转成active状态
hdfs haadmin -transitionToObserver nn1 --forcemanual 强制转换为observer状态
hdfs haadmin -getAllServiceState
hdfs haadmin -getServiceState nn0 获取namenode状态
hdfs haadmin -getServiceState nn1
12-10
928
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-09
359
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-17
1052
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)