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

    https://github.com/apache/spark/pull/1465#discussion_r15245702
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1463,12 +1463,13 @@ object SparkContext extends Logging {
         // Regular expression for connection to Simr cluster
         val SIMR_REGEX = """simr://(.*)""".r
     
    -    // When running locally, don't try to re-execute tasks on failure.
    +    // When running locally, by default don't try to re-execute tasks on 
failure.
         val MAX_LOCAL_TASK_FAILURES = 1
     
         master match {
           case "local" =>
    -        val scheduler = new TaskSchedulerImpl(sc, MAX_LOCAL_TASK_FAILURES, 
isLocal = true)
    +        val localTaskFailures = sc.conf.getInt("spark.local.maxFailures", 
MAX_LOCAL_TASK_FAILURES)
    --- End diff --
    
    Will do.


---
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.
---

Reply via email to