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] [Assigned] (SPARK-35013) Spark allows to set spark.driver.cores=0
Date Tue, 11 May 2021 15:16:00 GMT

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

Apache Spark reassigned SPARK-35013:
------------------------------------

    Assignee:     (was: Apache Spark)

> 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
>
> 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


Mime
View raw message