Skip to content

Conversation

@holdenk
Copy link
Contributor

@holdenk holdenk commented Sep 3, 2015

From Jira:
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).

@holdenk
Copy link
Contributor Author

holdenk commented Sep 3, 2015

cc @srowen & @vanzin who were on the ticket. I'm not sure if this should be targeted for 1.5 but if RC3 doesn't make it seems like it might be reasonable (since its a regression over 1.4.1 and pretty self contained), otherwise we can just fix it in master.

@vanzin
Copy link
Contributor

vanzin commented Sep 3, 2015

LGTM.

@holdenk
Copy link
Contributor Author

holdenk commented Sep 3, 2015

@vanzin : Do you think this is something we should try getting into 1.5 since its a regression, or just try and put it in master?

@vanzin
Copy link
Contributor

vanzin commented Sep 3, 2015

I wouldn't hold the release for it, but we can definitely push it to branch-1.5. Worst case, it makes it to 1.5.1.

@holdenk
Copy link
Contributor Author

holdenk commented Sep 3, 2015

Makes sense

@holdenk
Copy link
Contributor Author

holdenk commented Sep 3, 2015

Do you want to merge it since I don't have commit bits then? (or wait for srowen to take a look too?)

@vanzin
Copy link
Contributor

vanzin commented Sep 3, 2015

I'll merge tomorrow morning unless someone chimes in.

@SparkQA
Copy link

SparkQA commented Sep 3, 2015

Test build #41953 has finished for PR 8580 at commit f7e5b00.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Sep 3, 2015
From Jira:
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).

Author: Holden Karau <holden@pigscanfly.ca>

Closes #8580 from holdenk/SPARK-10332-spark-submit-to-yarn-executors-0-message.

(cherry picked from commit 67580f1)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in 67580f1 Sep 3, 2015
ashangit pushed a commit to ashangit/spark that referenced this pull request Oct 19, 2016
From Jira:
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).

Author: Holden Karau <holden@pigscanfly.ca>

Closes apache#8580 from holdenk/SPARK-10332-spark-submit-to-yarn-executors-0-message.

(cherry picked from commit 67580f1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants