Package ml.shifu.guagua.mapreduce
Class GuaguaOutputCommitter
- java.lang.Object
-
- org.apache.hadoop.mapreduce.OutputCommitter
-
- ml.shifu.guagua.mapreduce.GuaguaOutputCommitter
-
public class GuaguaOutputCommitter extends org.apache.hadoop.mapreduce.OutputCommitterThis output committer doesn't do anything, meant for the case where output isn't desired, or as a base for not using FileOutputCommitter.
-
-
Constructor Summary
Constructors Constructor Description GuaguaOutputCommitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)voidcleanupJob(org.apache.hadoop.mapreduce.JobContext jobContext)voidcommitJob(org.apache.hadoop.mapreduce.JobContext jobContext)voidcommitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)booleanneedsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context)voidsetupJob(org.apache.hadoop.mapreduce.JobContext context)voidsetupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
-
-
-
Method Detail
-
abortTask
public void abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException- Specified by:
abortTaskin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
commitTask
public void commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException- Specified by:
commitTaskin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
needsTaskCommit
public boolean needsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException- Specified by:
needsTaskCommitin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
setupJob
public void setupJob(org.apache.hadoop.mapreduce.JobContext context) throws IOException- Specified by:
setupJobin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
setupTask
public void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException- Specified by:
setupTaskin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
commitJob
public void commitJob(org.apache.hadoop.mapreduce.JobContext jobContext) throws IOException- Overrides:
commitJobin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
cleanupJob
public void cleanupJob(org.apache.hadoop.mapreduce.JobContext jobContext) throws IOException- Overrides:
cleanupJobin classorg.apache.hadoop.mapreduce.OutputCommitter- Throws:
IOException
-
-