Oleg Lypkan created SPARK-35013: ----------------------------------- Summary: Spark allows to set spark.driver.cores to 0 Key: SPARK-35013 URL: https://issues.apache.org/jira/browse/SPARK-35013 Project: Spark Issue Type: Bug Components: Spark Core Affects Versions: 3.1.1, 2.4.7 Reporter: Oleg Lypkan
I found an inconsistency in validation logic of Spark submit arguments 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 any 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org