ZKFC高可用模式下查看hdfs-namenode的主备状态:
hdfs haadmin -getServiceState nn1
hdfs haadmin -getServiceState nn2
手工实现主备切换:
RPC Remote Procedure Call 远程过程调用协议