Description
This code part is severely duplicated across the Hadoop repo:
public static boolean isApplicationFinalState(YarnApplicationState appState) { return appState == YarnApplicationState.FINISHED || appState == YarnApplicationState.FAILED || appState == YarnApplicationState.KILLED; }
This functionality is used heavily by the log aggregation as well, so we may do some sanitizing here.