时间:2021-07-01 10:21:17 帮助过:26人阅读
sudo -E -u hadoop /home/hadoop/bin/hdfs haadmin -getServiceState nn1
sudo -E -u hadoop /home/hadoop/bin/hdfs haadmin -getServiceState nn2
sudo -E 加大E是因为在sudo中默认是读不到环境变量的,例如$JAVA_HOME
查看name的状态,是属于active还是standby
标签:hadoop service and hdf dfs bin ice home 环境变量