Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9147#discussion_r42280906
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala ---
    @@ -62,10 +62,24 @@ private[spark] class ApplicationMaster(
         .asInstanceOf[YarnConfiguration]
       private val isClusterMode = args.userClass != null
     
    -  // Default to numExecutors * 2, with minimum of 3
    -  private val maxNumExecutorFailures = 
sparkConf.getInt("spark.yarn.max.executor.failures",
    -    sparkConf.getInt("spark.yarn.max.worker.failures",
    -      math.max(sparkConf.getInt("spark.executor.instances", 0) *  2, 3)))
    +  // Default to numExecutors * 2 (maxExecutors in the case that we are
    +  // dynamically allocating executors), with minimum of 3.
    +  private val maxNumExecutorFailures =
    +    sparkConf.getInt("spark.yarn.max.executor.failures",
    +      sparkConf.getInt("spark.yarn.max.worker.failures",
    --- End diff --
    
    This is not your fault, but since you're touching it... this should be 
added to `SparkConf.configsWithAlternatives` instead.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to