How to set the exit status of the Spark application?

I am writing a spark application and running it using a spark-submit shell script (using yarn-cluster / thread-client)

As I see now, the spark-submit exit code is determined in accordance with the corresponding application for yarn - if the SUCCEEDED status is 0, otherwise 1.

I want to be able to return another exit code - for the state that my application successfully executed with some errors.

Is it possible? return a different exit code from the application?

I tried using System.exit () but could not ...

Thank.

+4
source share
1 answer

, . .

question .

0

Source: https://habr.com/ru/post/1668414/


All Articles