/************************************************************ 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