Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.4.7, 3.1.1
-
None
Description
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:
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
I would like to understand if there is a reason for this inconsistency in the validation logic or it is a bug?
Thank you