Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-35013

Spark allows to set spark.driver.cores=0

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.7, 3.1.1
    • 3.2.0
    • Spark Core
    • 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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shahid shahid
            oleglypkan Oleg Lypkan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment