Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2557

createTaskScheduler should be consistent between local and local-n-failures

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Spark Core

    Description

      In SparkContext.createTaskScheduler, we can use

      local[*]

      to estimates the number of cores on the machine. I think we should also be able to use * in the local-n-failures mode.

      And according to the code in the LOCAL_N_REGEX pattern matching code, I believe the regular expression of LOCAL_N_REGEX is wrong. LOCAL_N_REFEX should be

      """local\[([0-9]+|\*)\]""".r
      

      rather than

       """local\[([0-9\*]+)\]""".r
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            advancedxy YE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified