hadoop安全模式
namenode is safemode
1 [root@bigdata-redhadoop-1 ~]# hadoop dfsadmin -safemode leave 2 safemode: Access denied for user root. Superuser privilege is required 3 4 [root@bigdata-redhadoop-1 ~]# su - hdfs 5 6 [root@bigdata-redhadoop-1 ~]# hdfs dfsadmin -safemode leave
显示安全模式关闭,但用hdfs dfsadmin -safemode get查询还是开的
原因:df -h发现根Use%为100%
最后删除一些日志,解放空间,然后再运行上面命令