hadoop mkdir 时 Name node is in safe mode
hadoop mkdir 时 Name node is in safe mode,但是我已经关闭了safe mode:hdfs dfsadmin -safemode leave
执行下这条命令
hadoop dfsadmin -safemode leave
qcbb001 发表于 2017-4-27 16:55
执行下这条命令
谢谢你 ,可是还是不行 配置文件hdfs.site.sh我也改了,加入<dfs.permissions.enabled>,值为false,也不可以重新格式化结点也不行
本帖最后由 赵苏苏 于 2017-4-27 17:43 编辑
解决了,是要在hdfs-site.xml里添加
<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>
来自:https://www.iteblog.com/archives/977.html 安全模式 确保hadoop的数据块 正常率超过 99%, 否则hadoop 会进入安全模式
页:
[1]