if (getConfiguration().isPureYarnJob() &&
getConfiguration().getVertexOutputFormatClass() != null) {
try {
OutputCommitter outputCommitter =
vertexOutputFormat.getOutputCommitter(getContext());
if (outputCommitter.needsTaskCommit(getContext())) {
LoggerUtils.setStatusAndLog(getContext(), LOG, Level.INFO,
"OutputCommitter: committing task output.");
// transfer from temp dirs to "task commit" dirs to prep for
// the master's OutputCommitter#commitJob(context) call to finish.
outputCommitter.commitTask(getContext());