• 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
  • 相关阅读:
    3DES加密及.NET弱密钥处理
    SQL截取字符串分隔符中间部门的办法
    Aspose.Words给word文档加水印
    Servlet 学习
    .Net直接将Web页面table导出到Excel
    jquery查找frameset框架内iframe的元素
    前端js数据排序
    ASP.NET 在OnClientClick中js方法直接调用Eval绑定字段的数据
    SQL Server 查询中文字段返回为空
    软件开发中的命名规则
  • 原文地址:https://www.cnblogs.com/dadadechengzi/p/6683331.html
Copyright © 2020-2023  润新知