hadoop1.2.1 datanode 由于权限无法启动 expected: rwxr-xr-x
Posted 大大的橙子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop1.2.1 datanode 由于权限无法启动 expected: rwxr-xr-x相关的知识,希望对你有一定的参考价值。
/************************************************************ STARTUP_MSG: Starting DataNode STARTUP_MSG: host = hdp122s1.test.com/192.168.56.101 STARTUP_MSG: args = [] STARTUP_MSG: version = 1.2.1 STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2 -r 1503152; compiled by ‘mattf‘ on Mon Jul 22 15:23:09 PDT 2013 STARTUP_MSG: java = 1.7.0_80 ************************************************************/ 2017-04-08 22:30:09,924 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties 2017-04-08 22:30:09,935 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered. 2017-04-08 22:30:09,935 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s). 2017-04-08 22:30:09,935 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: DataNode metrics system started 2017-04-08 22:30:10,178 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source ugi registered. 2017-04-08 22:30:10,221 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists! 2017-04-08 22:30:10,312 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid directory in dfs.data.dir: Incorrect permission for file:/home/hdp/hadoop/data, expected: rwxr-xr-x, while actual: rwxr----x 2017-04-08 22:30:10,312 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: All directories in dfs.data.dir are invalid. 2017-04-08 22:30:10,312 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode 2017-04-08 22:30:10,312 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
设置满足条件的权限
chmod 755 /home/hdp/hadoop/data
以上是关于hadoop1.2.1 datanode 由于权限无法启动 expected: rwxr-xr-x的主要内容,如果未能解决你的问题,请参考以下文章
无法从 namenode (master) 启动集群:datanode (slave) 和 namenode (master) 上的 $HADOOP_HOME 不同