centos7下hadoop3.0.3 hdfs状态查看命令
查看安全模式状态
hdfs dfsadmin -safemode get
通过命令来查看NameNode的状态(是Active还是Standby)
hdfs haadmin -getServiceState nn1
hdfs haadmin -getServiceState nn2
hdfs haadmin -getServiceState nn3
查看zookeeper集群状态
runRemoteCmd.sh “zkServer.sh status” all