zoukankan      html  css  js  c++  java
  • yarn 报错 requested virtual cores < 0, or requested virtual cores > max configured, requestedVirtualCores=6, maxVirtualCores=4 原因

    INFO  ApplicationMaster:54 - Final app status: FAILED, exitCode: 13, (reason: Uncaught exception: org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested virtual cores < 0, or requested virtual cores > max configured, requestedVirtualCores=6, maxVirtualCores=4
    

    原因是 任务请求 6vcores 但是最大只有4vcores ,申请不到可用的6vcores 所以报错了。

    我们是hadoop-2.6.0 升级hadoop-2.8.4 之后报了此问题
    yarn-site.xml

    <!-- 2.8.4 最大default 4 -->
    <property>
        <name>yarn.scheduler.maximum-allocation-vcores</name>
        <value>4</value>
    </property>
    
    <!-- 2.6.0 最大default 32 -->
    <property>
        <name>yarn.scheduler.maximum-allocation-vcores</name>
        <value>32</value>
    </property>
    
    

    把2.8.4 yarn-site.xml 修改到32,重启yarn就行了

  • 相关阅读:
    2012年浙大:Hello World for U
    noip2011普及组:统计单词
    noip2013提高组:积木大赛
    蓝桥杯:错误票据
    C#知识点
    疑问
    C#多态
    SQLServer导入Excel,复杂操作
    SQLServer数据库基本操作,导入Excel数据
    C#基础学习
  • 原文地址:https://www.cnblogs.com/jiangxiaoxian/p/9879022.html
Copyright © 2011-2022 走看看