-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-21655][YARN] Support Kill CLI for Yarn mode #18897
Conversation
@jerryshao Could you review this PR? Thanks! |
ok to test |
Test build #80491 has finished for PR 18897 at commit
|
That's not true; that works just like "yarn kill". This is the code that does it in
This change seems also way more about creating some communication channel between arbitrary clients and the Spark AM. I'd like to see the bug and the PR explain that in way more detail, since the "kill" implementation doesn't really seem to be the meat of this change. |
I think the kill is to more cleanly shutdown on the yarn side of things. If you yarn kill an application on yarn it doesn't set the history appropriately, etc. Its also just nice to have one spot to go to do things, similar to mapred, pig, oozie, type commands. I think we can definitely split this up into 2 prs, one for the rpc layer changes (which requires some lower level changes due to authentication with tokens) and then one for the kill command itself, does that sounds good @vanzin? |
Yes, I'd really like a more thorough explanation of the RPC changes. Once that's sorted out, adding something like a "kill" command should be trivial. |
Test build #80494 has finished for PR 18897 at commit
|
Test build #80496 has finished for PR 18897 at commit
|
I think this RPC layer could also serve for SPARK-19143. |
rpc layer split off into https://issues.apache.org/jira/browse/SPARK-21737 |
Can we close this PR until #18978 is figured out? |
What changes were proposed in this pull request?
Similar to how standalone and Mesos have the capability to safely shut down the spark application, there should be a way to safely shut down spark on Yarn mode. This will ensure a clean shutdown and unregistration from yarn.
This PR adds YARN support for
--kill SUBMISSION_ID
CLIHow was this patch tested?
Tested by running a word count job and killing it via the kill CLI.
- no view, modify ACL
- only view ACL
- only modify ACL
- both view, modify ACL