Ambari无法启动NameNode
错误消息
Execution of ‘/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://docker5.jcinfo.com:8020 -safemode get | grep ‘Safe mode is OFF” returned 1.
解决办法
sudo su hdfs -l -c ‘hdfs dfsadmin -safemode leave’
Execution of ‘/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://docker5.jcinfo.com:8020 -safemode get | grep ‘Safe mode is OFF” returned 1.
sudo su hdfs -l -c ‘hdfs dfsadmin -safemode leave’