You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2021/05/12 19:48:00 UTC

[jira] [Resolved] (SPARK-35013) Spark allows to set spark.driver.cores=0

     [ https://issues.apache.org/jira/browse/SPARK-35013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun resolved SPARK-35013.
-----------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

Issue resolved by pull request 32504
[https://github.com/apache/spark/pull/32504]

> Spark allows to set spark.driver.cores=0
> ----------------------------------------
>
>                 Key: SPARK-35013
>                 URL: https://issues.apache.org/jira/browse/SPARK-35013
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.4.7, 3.1.1
>            Reporter: Oleg Lypkan
>            Priority: Minor
>             Fix For: 3.2.0
>
>
> I found an inconsistency in [validation logic of Spark submit arguments |https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala#L248-L258]that allows *spark.driver.cores* value to be set to 0 but requires *spark.driver.memory,* *spark.executor.cores, spark.executor.memory* to be positive numbers:
> {quote}Exception in thread "main" org.apache.spark.SparkException: Driver memory must be a positive number
>  Exception in thread "main" org.apache.spark.SparkException: Executor cores must be a positive number
>  Exception in thread "main" org.apache.spark.SparkException: Executor memory must be a positive number
> {quote}
> I would like to understand if there is a reason for this inconsistency in the validation logic or it is a bug?
> Thank you



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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