GitHub user codeboyyong opened a pull request:

    https://github.com/apache/spark/pull/1099

    [SPARK-1516]Throw exception in yarn client instead of run system.exit

        [SPARK-1516]Throw exception in yarn client instead of run system.exit 
directly.
    
        All the changes is in  the package of "org.apache.spark.deploy.yarn":
            1) Throw IllegalArgumentException in ClinetArguments  instead of 
exit directly.
            2) In Client's main method, if exception is caught, it will exit 
with code 1, otherwise exit with code 0.
            3) In YarnClientSchedulerBackend's start method, if 
IllegalArgumentException is caught, it will exit with code 1, otherwise throw 
that exception.
            4) Fix some message typo in the Client.scala
        After the fix, if user integrate the spark yarn client into their 
applications,
        when the argument is wrong or the running is finished, the application 
won't be terminated.

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

    $ git pull https://github.com/codeboyyong/spark branch-0.9

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

    https://github.com/apache/spark/pull/1099.patch

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

    This closes #1099
    
----
commit 6f71cd85916edd97af0afca13f300763bcc6c737
Author: John Zhao <[email protected]>
Date:   2014-06-16T22:55:49Z

        [SPARK-1516]Throw exception in yarn client instead of run system.exit 
directly.
    
        All the changes is in  the package of "org.apache.spark.deploy.yarn":
            1) Throw IllegalArgumentException in ClinetArguments  instead of 
exit directly.
            2) In Client's main method, if exception is caught, it will exit 
with code 1, otherwise exit with code 0.
            3) In YarnClientSchedulerBackend's start method, if 
IllegalArgumentException is caught, it will exit with code 1, otherwise throw 
that exception.
            4) Fix some message typo in the Client.scala
        After the fix, if user integrate the spark yarn client into their 
applications,
        when the argument is wrong or the running is finished, the application 
won't be terminated.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to