-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-6975][Yarn] Fix argument validation error #5551
Conversation
"You must specify at least 1 executor!\n" + getUsageMessage()) | ||
s""" | ||
|Number of executors $numExecutors is not legal. | ||
|If dynamic allocation is enable, number of executors should at least be 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabled -> enabled. I think this is simpler to state as "Number of executors was $numExecutors, but must be at least 1 (or 0 if dynamic executor allocation is enabled)."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will change the statement.
Test build #30466 has finished for PR 5551 at commit
|
Test build #30471 has finished for PR 5551 at commit
|
Jenkins, retest this please. |
Test build #30481 has finished for PR 5551 at commit
|
Looks fine to me. Seems like it might be useful (and easy) to have different messages for each case, but not a big deal. |
This looks fine. The previous setting was very confusing to the user because they would have run into this by following the docs. Thanks for fixing this I'm merging this into master and 1.3 |
`numExecutors` checking is failed when dynamic allocation is enabled with default configuration. Details can be seen is [SPARK-6975](https://issues.apache.org/jira/browse/SPARK-6975). sryza, please help me to review this, not sure is this the correct way, I think previous you change this part :) Author: jerryshao <saisai.shao@intel.com> Closes #5551 from jerryshao/SPARK-6975 and squashes the following commits: 4335da1 [jerryshao] Change according to the comments 77bdcbd [jerryshao] Fix argument validation error (cherry picked from commit d850b4b) Signed-off-by: Andrew Or <andrew@databricks.com>
numExecutors
checking is failed when dynamic allocation is enabled with default configuration. Details can be seen is SPARK-6975. @sryza, please help me to review this, not sure is this the correct way, I think previous you change this part :)