报错Cannot set permission for /hdata/hdfs/system. Name node is in safe mode.

在重启Hadoop集群时遇到了'Cannot set permission for /hdata/hdfs/system. Name node is in safe mode.'的错误。问题根源在于mapred.system.dir配置错误,该目录应为HDFS目录而非本地目录。解决方案是创建HDFS目录/hdata/hdfs/hdfs_system,并修改mapred-site.xml配置文件。然而,即使如此,仍出现类似错误,最后通过'hadoop fs -chown hadoop:hadoop /hdata/hdfs/hdfs_system'命令解决了权限问题。
摘要由CSDN通过智能技术生成

错误现象:hadoop集群重启时报如下错误:
2013-07-05 14:41:50,074 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:hadoop (auth:SIMPLE) cause:org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot set permission for /hdata/hdfs/system. Name node is in safe mode.
The reported blocks 0 needs additional 92 blocks to reach the threshold 0.9990 of total blocks 93. Safe mode will be turned off automatically.
2013-07-05 14:41:50,075 INFO org.apache.hadoop.ipc.Server: IPC Server handler 3 on 9000, call setPermission(/hdata/hdfs/system, rwx------) from 10.132.30.48:47969: error: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot set permission for /hdata/hdfs/system. Name node is in safe mode.
The reported blocks 0 needs additional 92 blocks to reach the threshold 0.9990 of total blocks 93. Safe mode will be turned off automatically.
org.apache.hadoop.hdfs.server.namenode.SafeModeException: C
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值