spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Villard <pierre.villard...@gmail.com>
Subject Re: Custom return code
Date Fri, 02 Sep 2016 06:17:08 GMT
Any hint?

2016-08-31 20:40 GMT+02:00 Pierre Villard <pierre.villard.fr@gmail.com>:

> Hi,
>
> I am using Spark 1.5.2 and I am submitting a job (jar file) using
> spark-submit command in a yarn cluster mode. I'd like the command to return
> a custom return code.
>
> In the run method, if I do:
> sys.exit(myCode)
> the command will always return 0.
>
> The only way to have something not equal to 0 is to throw an exception and
> this will return 1.
>
> Is there a way to have a custom return code from the job application?
>
> Thanks a lot!
>

Mime
View raw message