安全模式 确保hadoop的数据块 正常率超过 99%, 否则hadoop 会进入安全模式 |
本帖最后由 赵苏苏 于 2017-4-27 17:43 编辑 解决了,是要在hdfs-site.xml里添加 [mw_shl_code=bash,true]<property> <name>dfs.namenode.safemode.threshold-pct</name> <value>0.999f</value> <description> Specifies the percentage of blocks that should satisfy the minimal replication requirement defined by dfs.namenode.replication.min. Values less than or equal to 0 mean not to wait for any particular percentage of blocks before exiting safemode. Values greater than 1 will make safe mode permanent. </description> </property>[/mw_shl_code] |
qcbb001 发表于 2017-4-27 16:55 谢谢你 ,可是还是不行 配置文件hdfs.site.sh我也改了,加入<dfs.permissions.enabled>,值为false,也不可以重新格式化结点也不行 |
执行下这条命令 [mw_shl_code=bash,true]hadoop dfsadmin -safemode leave[/mw_shl_code] |