栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

【Flink问题】The number of requested virtual cores per node 8 exceeds the maximum number of virtual core

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【Flink问题】The number of requested virtual cores per node 8 exceeds the maximum number of virtual core

问题描述

运行以下命令时出现问题

./bin/flink run-application -t yarn-application ./examples/streaming/TopSpeedWindowing.jar

具体错误

org.apache.flink.client.deployment.ClusterDeploymentException: Couldn't deploy Yarn Application Cluster
        at org.apache.flink.yarn.YarnClusterDescriptor.deployApplicationCluster(YarnClusterDescriptor.java:465)
        .....
Caused by: org.apache.flink.configuration.IllegalConfigurationException: The number of requested virtual cores per node 8 exceeds the maximum number of virtual cores 6 available in the Yarn Cluster. Please note that the number of virtual cores is set to the number of task slots by default unless configured in the Flink config with 'yarn.containers.vcores.'
        at org.apache.flink.yarn.YarnClusterDescriptor.isReadyForDeployment(YarnClusterDescriptor.java:338)
        at org.apache.flink.yarn.YarnClusterDescriptor.deployInternal(YarnClusterDescriptor.java:534)
        at org.apache.flink.yarn.YarnClusterDescriptor.deployApplicationCluster(YarnClusterDescriptor.java:458)
        ... 9 more
解决方案

有以下错误可以看出

The number of requested virtual cores per node 8 exceeds the maximum number of virtual cores 6 available in the Yarn Cluster. 
Please note that the number of virtual cores is set to the number of task slots by default unless configured 
in the Flink config with 'yarn.containers.vcores.'

yarn配置中的yarn.containers.vcores设置了虚拟的cores=6,taskManager的slot我设置了8个,资源不够

解决方法:

  • 方法一:调大vcores参数

  • 方法二:减少slot个数taskmanager.numberOfTaskSlots: 5
    在flink安装目录下conf/flink-conf.yaml文件修改以下内容

    taskmanager.numberOfTaskSlots: 5
    
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/972507.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号