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

spark-submit to yarn doesn't fail if executors is 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.1, 1.6.0
    • Component/s: Spark Submit, YARN
    • Labels:
      None

      Description

      Running spark-submit with yarn with number-executors equal to 0 when not using dynamic allocation should error out.

      In spark 1.5.0 it continues and ends up hanging.

      yarn.ClientArguments still has the check so something else must have changed.

      spark-submit --master yarn --deploy-mode cluster --class org.apache.spark.examples.SparkPi --num-executors 0 ....

      spark 1.4.1 errors with:
      java.lang.IllegalArgumentException:
      Number of executors was 0, but must be at least 1
      (or 0 if dynamic executor allocation is enabled).

        Attachments

          Activity

            People

            • Assignee:
              holden Holden Karau
              Reporter:
              tgraves Thomas Graves
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: