apache-spark - YarnAllocator 请求的容器比我请求的多
问题描述
YarnAllocator 和 Yarn Resource Manager 表现得如此慷慨,以至于它要求和提供的比我在配置上的要多。我一共要了 72 个容器,它给了 133 个容器。我期望的是 YarnAllocator 只会分配我要求的数量。有人可以解释发生了什么吗?
这是从日志中捕获的请求
18/06/08 06:52:29 INFO yarn.YarnAllocator: Will request 72 executor container(s), each with 4 core(s) and 11264 MB memory (including 3072 MB of overhead)
18/06/08 06:52:29 INFO yarn.YarnAllocator: Submitted 72 unlocalized container requests.
...
18/06/08 06:52:30 INFO yarn.YarnAllocator: Will request 8 executor container(s), each with 4 core(s) and 11264 MB memory (including 3072 MB of overhead)
18/06/08 06:52:30 INFO yarn.YarnAllocator: Submitted 8 unlocalized container requests.
...
18/06/08 06:52:31 INFO yarn.YarnAllocator: Will request 53 executor container(s), each with 4 core(s) and 11264 MB memory (including 3072 MB of overhead)
18/06/08 06:52:32 INFO yarn.YarnAllocator: Submitted 53 unlocalized container requests.
这是我的火花配置:
--driver-memory 4g \
--executor-memory 8g \
--executor-cores 4 \
--num-executors 72 \
--conf spark.yarn.executor.memoryOverhead=3072 \
--conf spark.executor.extraJavaOptions="-XX:+UseG1GC" \
--conf spark.yarn.max.executor.failures=128 \
--conf spark.memory.fraction=0.1 \
--conf spark.rdd.compress=true \
--conf spark.shuffle.compress=true \
--conf spark.shuffle.service.enabled=true \
--conf spark.shuffle.spill.compress=true \
--conf spark.speculation=false \
--conf spark.task.maxFailures=1000 \
--conf spark.sql.codegen.wholeStage=false \
--conf spark.scheduler.listenerbus.eventqueue.size=100000 \
--conf spark.shuffle.service.enabled=false \
解决方案
推荐阅读
- scala - 如何使用 Amazon Deequ 检查“column1”的值是否在“column2”的值的 +-20% 范围内?
- android - 如何测试复选框可见性
- javascript - 隐藏 div 元素
- r - 我可以在 Overleaf 中添加额外的 R 包吗?
- python - Plotly Dash:如何重现 dcc.Upload 的“内容”输出?(即base64编码的字符串)
- javascript - 检查字符串是否包含来自单词数组(jquery,javascript)的整个单词
- .net - Azure Batch - 在 CloudJob (.Net) 上更新作业优先级
- python - Python selenium Webdriver Chrome 修复
- node.js - 尝试在 CentOS 上安装 nodejs 12 时出现错误
- node.js - 如何在 node.js 中将 Mongodb 一个实例用于不同的不同模块