}
public static void commitJob(GiraphConfiguration conf)
throws IOException, InterruptedException {
ImmutableClassesGiraphConfiguration iconf = new ImmutableClassesGiraphConfiguration(conf);
WrappedVertexOutputFormat outputFormat = iconf.createWrappedVertexOutputFormat();
JobConf jobConf = new JobConf(conf);
TaskAttemptContext
taskContext = new HackTaskAttemptContext(jobConf, new TaskAttemptID());
OutputCommitter outputCommitter = outputFormat.getOutputCommitter(
taskContext);
JobContext jobContext = new HackJobContext(jobConf, taskContext.getJobID());
outputCommitter.commitJob(jobContext);
}