spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-12554) Standalone app scheduler will hang when app.coreToAssign < minCoresPerExecutor
Date Tue, 29 Dec 2015 10:15:49 GMT

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

Apache Spark commented on SPARK-12554:
--------------------------------------

User 'JerryLead' has created a pull request for this issue:
https://github.com/apache/spark/pull/10507

> Standalone app scheduler will hang when app.coreToAssign < minCoresPerExecutor
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-12554
>                 URL: https://issues.apache.org/jira/browse/SPARK-12554
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy, Scheduler
>    Affects Versions: 1.5.2
>            Reporter: Lijie Xu
>            Priority: Critical
>
> In scheduleExecutorsOnWorker() in Master.scala,
> *val keepScheduling = coresToAssign >= minCoresPerExecutor* should be changed to *val
keepScheduling = coresToAssign > 0*
> Suppose that an app's requested cores is 10 (i.e., spark.cores.max = 10) and app.coresPerExecutor
is 4 (i.e., spark.executor.cores = 4). 
> After allocating two executors (each has 4 cores) to the app, the *coresToAssign = 2*
and *minCoresPerExecutor = coresPerExecutor = 4*, so *keepScheduling = false* and no extra
executor will be allocated to the app. As a result, the app and the scheduler will hang.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message