Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.0
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