[ 
https://issues.apache.org/jira/browse/SPARK-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048175#comment-14048175
 ] 

Marcelo Vanzin commented on SPARK-2167:
---------------------------------------

Given that spark-submit doesn't really have access to the application's 
context, is this possible at all? Seems like, at the moment, it's up to 
applications to call {{System.exit()}} appropriately when they do not succeed.

If the application throws some exception, spark-submit already exits with 
non-zero status (although I understand that exceptions are not necessarily 
thrown when the job fails).

> spark-submit should return exit code based on failure/success
> -------------------------------------------------------------
>
>                 Key: SPARK-2167
>                 URL: https://issues.apache.org/jira/browse/SPARK-2167
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy
>    Affects Versions: 1.0.0
>            Reporter: Thomas Graves
>             Fix For: 1.1.0
>
>
> spark-submit script and Java class should exit with 0 for success and 
> non-zero with failure so that other command line tools and workflow managers 
> (like oozie) can properly tell if the spark app succeeded or failed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to