标签:hadoop service and hdf dfs bin ice home 环境变量
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
标签:hadoop service and hdf dfs bin ice home 环境变量
原文地址:http://www.cnblogs.com/hark0623/p/7084726.html