HA模式下管理节点

1
2
3
4
5
6
7
8
# 查看namenode节点状态
hdfs haadmin -getAllServiceState

#切换节点为standby
hdfs haadmin -transitionToStandby [serviceId]

#切换节点为active
hdfs haadmin -transitionToActive [serviceId]