3

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.

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
Harel Gliksman
  • 734
  • 1
  • 7
  • 19

1 Answers1

5

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

Harel Gliksman
  • 734
  • 1
  • 7
  • 19