GitHub user yoonlee95 opened a pull request:

    [SPARK-21655][YARN] Support Kill CLI for Yarn mode

    ## 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` CLI
    ## How was this patch tested?
    Tested by running a word count job and killing it via the kill CLI.
    - Test condition
        - Application running on Client mode, cluster mode
        - different ACL condition for the client that is submitting the kill CLI
               - no view, modify ACL
               - only view ACL
               - only modify ACL
               - both view, modify ACL
        - spark.authentication true/false
        - using keytab

You can merge this pull request into a Git repository by running:

    $ git pull SPARK-21655

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18897
commit 14c680c6635402c35e3bed4a249936f54bceee82
Author: John Lee <>
Date:   2017-08-09T19:59:59Z

    patch applied with merge conflict fixed

commit af9d7e3b48e438c06ee6e948c65792aa59c95e4a
Author: John Lee <>
Date:   2017-08-09T21:28:44Z

    tested cluster & client mode


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to