Description
yarnClient.getApplicationReport(appId) would return 2 state below:
- YarnApplicationState (short as yarnState)
- FinalApplicationStatus (short as finalState)
These 2 state may switch sequentially in practice, means (yarnState, finalState) as
(RUNNING, SUCCEEDED) would switch to (FINISHED, SUCCEEDED) finally.
For now, (yarnState, finalState) as (RUNNING, SUCCEEDED) would be identified as FAIL state combination in Livy, this result in Spark job unexpected fail in pratice.