【发布时间】:2019-04-24 06:04:49
【问题描述】:
我正在使用启用了动态分配的 MapR 分发的 Spark 项目工作。请参考以下参数:
spark.dynamicAllocation.enabled true
spark.shuffle.service.enabled true
spark.dynamicAllocation.minExecutors 0
spark.dynamicAllocation.maxExecutors 20
spark.executor.instances 2
根据我的理解 spark.executor.instances 是我们在提交 pySpark 作业时定义为 --num-executors 的内容。
我有以下两个问题:
如果我在提交作业期间使用
--num-executors 5,它会覆盖spark.executor.instances 2配置设置吗?在已定义动态分配最小和最大执行程序时定义
spark.executor.instances的目的是什么?
【问题讨论】:
标签: apache-spark pyspark