envs.get(ApplicationConstants.AM_CONTAINER_ID_ENV))
.getApplicationAttemptId();
}
private void start() throws Exception {
JobState finalState = null;
try {
job = new JobImpl(appAttemptId, jobConf, yarnRPC, amrmRPC, jobFile, jobId);
finalState = job.startJob();
} finally {
if (finalState != null) {
LOG.info("Job \"" + applicationName + "\"'s state after completion: "
+ finalState.toString());
LOG.info("Job took " + ((clock.getTime() - startTime) / 1000L)
+ "s to finish!");
}
job.cleanup();
}