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.
source
share