Lijia Liu created SPARK-27192:
---------------------------------

             Summary: spark.task.cpus should be less or equal than 
spark.task.cpus when use static executor allocation
                 Key: SPARK-27192
                 URL: https://issues.apache.org/jira/browse/SPARK-27192
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 2.4.0, 2.3.0, 2.2.0
            Reporter: Lijia Liu


When use dynamic executor allocation, if we set spark.executor.cores small than 
 spark.task.cpus, exception will be thrown as follows:

'''spark.executor.cores must not be < spark.task.cpus'''

But, if dynamic executor allocation not enabled, spark will hang when submit 
new job for TaskSchedulerImpl will not schedule a task in a executor which 
available cores is small than 

spark.task.cpus.See 
[https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala#L351]

So, when start task scheduler, spark.task.cpus should be check.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to