Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/13338#discussion_r66684570
--- Diff:
yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnSparkHadoopUtil.scala ---
@@ -519,9 +519,9 @@ object YarnSparkHadoopUtil {
conf: SparkConf,
numExecutors: Int = DEFAULT_NUMBER_EXECUTORS): Int = {
if (Utils.isDynamicAllocationEnabled(conf)) {
- val minNumExecutors = conf.get(DYN_ALLOCATION_MIN_EXECUTORS)
- val initialNumExecutors = conf.get(DYN_ALLOCATION_INITIAL_EXECUTORS)
- val maxNumExecutors = conf.get(DYN_ALLOCATION_MAX_EXECUTORS)
+ val minNumExecutors = Utils.getDynamicAllocationMinExecutors(conf)
--- End diff --
Hmm, no. `sparkConf.get(DYN_ALLOCATION_MAX_EXECUTORS)` will return you an
int, and if it's not defined in the conf, it will return you the default value,
so you won't need to duplicate it in your code.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]