[SPARK-15665] [CORE] spark-submit --kill and --status are not working#13407
[SPARK-15665] [CORE] spark-submit --kill and --status are not working#13407devaraj-kavali wants to merge 2 commits intoapache:masterfrom
Conversation
|
CC @vanzin |
|
Jenkins test this please |
|
Test build #59647 has finished for PR 13407 at commit
|
|
LGTM but can you add unit tests so that these aren't inadvertently broken again? |
|
Actually, looking at it again, I think the fix makes the code a little confusing. Why is I think it would be better to keep another flag saying whether |
|
or just add a special appResource like |
If SparkSubmit can still process |
|
@devaraj-kavali did you have a chance to look at the feedback? |
|
Thanks @vanzin and @andrewor14 for looking into this, sorry for the delay.
I tried this but it doesn't work with the below error I have renamed the printInfo flag to isAppResourceReq and used the same for kill and status cases also. Please review and let me know your feedback. |
| return newCommandBuilder(args).buildCommand(env); | ||
| } | ||
|
|
||
| private void testCLIOpts(String opt) throws Exception { |
There was a problem hiding this comment.
nit: the naming sounds generic but this is testing options that take values, not any option... maybe tweak the name a little bit, or pass the option value as an argument (null == no value)?
|
A couple of nits, but looks ok pending tests, which I have no idea why they haven't run. retest this please |
|
Test build #59862 has finished for PR 13407 at commit
|
|
I think these tests are flaky, but... retest this please |
|
Test build #59875 has finished for PR 13407 at commit
|
|
Merging to master / 2.0. If the names become an issue we can change later. |
## What changes were proposed in this pull request? --kill and --status were not considered while handling in OptionParser and due to that it was failing. Now handling the --kill and --status options as part of OptionParser.handle. ## How was this patch tested? Added a test org.apache.spark.launcher.SparkSubmitCommandBuilderSuite.testCliKillAndStatus() and also I have verified these manually by running --kill and --status commands. Author: Devaraj K <devaraj@apache.org> Closes #13407 from devaraj-kavali/SPARK-15665. (cherry picked from commit efd3b11) Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
|
Thanks @vanzin for review and merging. |
What changes were proposed in this pull request?
--kill and --status were not considered while handling in OptionParser and due to that it was failing. Now handling the --kill and --status options as part of OptionParser.handle.
How was this patch tested?
Added a test org.apache.spark.launcher.SparkSubmitCommandBuilderSuite.testCliKillAndStatus() and also I have verified these manually by running --kill and --status commands.