GitHub user vanzin opened a pull request:

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

    [SPARK-9416] [core,yarn] Make pyspark fail YARN app on failure.

    The YARN backend doesn't like when user code calls `System.exit`,
    since it cannot know the exit status and thus cannot set an
    appropriate final status for the application.
    
    So, for pyspark, avoid that call and instead throw an exception with
    the exit code. SparkSubmit handles that exception and exits with
    the given exit code, while YARN uses the exit code as the failure
    code for the Spark app.

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

    $ git pull https://github.com/vanzin/spark SPARK-9416

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

    https://github.com/apache/spark/pull/7751.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 #7751
    
----
commit 2bb2a8a6ebe47dbec7f0cf45ea9f1eac944a6a0e
Author: Marcelo Vanzin <van...@cloudera.com>
Date:   2015-07-29T00:14:59Z

    [SPARK-9416] [core,yarn] Make pyspark fail YARN app on failure.
    
    The YARN backend doesn't like when user code calls `System.exit`,
    since it cannot know the exit status and thus cannot set an
    appropriate final status for the application.
    
    So, for pyspark, avoid that call and instead throw an exception with
    the exit code. SparkSubmit handles that exception and exits with
    the given exit code, while YARN uses the exit code as the failure
    code for the Spark app.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to