zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    设计模式(一)基础面向对象
    面试题之三门问题
    「巫师3(The Witcher 3:Wild Hunt)」游戏测评
    欧拉角和四元数
    struts标签遍历各种list Map
    浅谈HtmlCleaner+XPath解析html或者xml
    hadoop简单例子
    解决JSP参数传递乱码的问题
    Set、List、Map的区别(浅谈)
    做个犀利的码农
  • 原文地址:https://www.cnblogs.com/dadadechengzi/p/6683331.html
Copyright © 2011-2022 走看看