You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ye Xianjin (JIRA)" <ji...@apache.org> on 2014/07/17 17:13:04 UTC

[jira] [Commented] (SPARK-2557) createTaskScheduler should be consistent between local and local-n-failures

    [ https://issues.apache.org/jira/browse/SPARK-2557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14065001#comment-14065001 ] 

Ye Xianjin commented on SPARK-2557:
-----------------------------------

I will send a pr for this.

> createTaskScheduler should be consistent between local and local-n-failures 
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-2557
>                 URL: https://issues.apache.org/jira/browse/SPARK-2557
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.0.0
>            Reporter: Ye Xianjin
>            Priority: Minor
>              Labels: starter
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> In SparkContext.createTaskScheduler, we can use {code}local[*]{code} 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 
> {code}
> """local\[([0-9]+|\*)\]""".r
> {code} 
> rather than
> {code}
>  """local\[([0-9\*]+)\]""".r
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)