• hadoop无法停止


    停止hadoop集群,运行命令

    $ sh stop-all.sh

    出现提示:

    no resourcemanager to stop
    host10: no nodemanager to stop
    host9: no nodemanager to stop
    no proxyserver to stop

    添加日志重新操作:

    export HADOOP_ROOT_LOGGER=DEBUG,console
    18/11/13 11:07:16 DEBUG util.PerformanceAdvisory: Falling back to shell based
    18/11/13 11:07:16 DEBUG security.JniBasedUnixGroupsMappingWithFallback: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping
    18/11/13 11:07:16 DEBUG security.Groups: Group mapping impl=org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback; cacheTimeout=300000; warningDeltaMs=5000
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: hadoop login
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: hadoop login commit
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: using local user:UnixPrincipal: udap
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: Using user: "UnixPrincipal: udap" with name udap
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: User entry: "udap"
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: UGI loginUser:udap (auth:SIMPLE)
    18/11/13 11:07:16 DEBUG security.UserGroupInformation: PrivilegedAction as:udap (auth:SIMPLE) from:org.apache.hadoop.hdfs.tools.GetConf.run(GetConf.java:314)
    stopping yarn daemons
    no resourcemanager to stop
    host10: no nodemanager to stop
    host9: no nodemanager to stop
    no proxyserver to stop

    没什么报错信息,这不科学,所以观察脚本,发现错误在寻找pid的时候没找到,默认pid存在:

    if [ "$HADOOP_PID_DIR" = "" ]; then
      HADOOP_PID_DIR=/tmp
    fi

    当tmp目录被删除时,此时就无法运行脚本停止进程,所以只能手动一台台停止进程了,如果要避免错误应该是启动脚本中将“HADOOP_PID_DIR”配置到不删除目录

  • 相关阅读:
    ASP.NET Web API 2 之文件下载
    Windows 查看某个端口号是否被占用
    C# 数据类型之 String(字符串)
    数据表对应关系(一对一、一对多、多对多)
    嫁给程序员的好处,你get到了吗?
    ASP.NET Web API 2 之 HttpRequestMessage 对象
    C# 使用 log4net 记录日志
    Chrome 浏览器快捷键
    C# 获取程序运行时路径
    SpringBoot整合Pagehelper分页插件
  • 原文地址:https://www.cnblogs.com/garfieldcgf/p/9952666.html
Copyright © 2020-2023  润新知