Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Spark application's final status FAILED while it finishes successfully?

My application Spark 2.0.0 runs on yarn 2.7.2. It finishes successfully but Yarn marks it as failed with error:

Final app status: FAILED, exitCode: 16, (reason: Shutdown hook called     before final status was reported.)

I see no errors on executors nor driver and application writes the data it is supposed to.

like image 259
Harel Gliksman Avatar asked Dec 08 '25 04:12

Harel Gliksman


1 Answers

This seems to be caused by calling System.exit( 0 ) specifically in my code. After removing it the problem is gone

like image 137
Harel Gliksman Avatar answered Dec 11 '25 03:12

Harel Gliksman