org.apache.hcatalog.mapreduce
Class HCatBaseOutputCommitter
java.lang.Object
org.apache.hadoop.mapreduce.OutputCommitter
org.apache.hcatalog.mapreduce.HCatBaseOutputCommitter
- Direct Known Subclasses:
- HCatEximOutputCommitter
public abstract class HCatBaseOutputCommitter
- extends org.apache.hadoop.mapreduce.OutputCommitter
Constructor Summary |
HCatBaseOutputCommitter(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.OutputCommitter baseCommitter)
|
Method Summary |
void |
abortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hadoop.mapreduce.JobStatus.State state)
|
void |
abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
void |
commitJob(org.apache.hadoop.mapreduce.JobContext jobContext)
|
void |
commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
protected void |
doAbortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo)
|
boolean |
needsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
void |
setupJob(org.apache.hadoop.mapreduce.JobContext context)
|
void |
setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
Methods inherited from class org.apache.hadoop.mapreduce.OutputCommitter |
cleanupJob |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseCommitter
protected final org.apache.hadoop.mapreduce.OutputCommitter baseCommitter
- The underlying output committer
SUCCEEDED_FILE_NAME
public static final java.lang.String SUCCEEDED_FILE_NAME
- See Also:
- Constant Field Values
HCatBaseOutputCommitter
public HCatBaseOutputCommitter(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.OutputCommitter baseCommitter)
abortTask
public void abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
- Specified by:
abortTask
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
commitTask
public void commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
- Specified by:
commitTask
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
needsTaskCommit
public boolean needsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
- Specified by:
needsTaskCommit
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
setupJob
public void setupJob(org.apache.hadoop.mapreduce.JobContext context)
throws java.io.IOException
- Specified by:
setupJob
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
setupTask
public void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
- Specified by:
setupTask
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
abortJob
public void abortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hadoop.mapreduce.JobStatus.State state)
throws java.io.IOException
- Overrides:
abortJob
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException
doAbortJob
protected void doAbortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo)
throws HCatException
- Throws:
HCatException
commitJob
public void commitJob(org.apache.hadoop.mapreduce.JobContext jobContext)
throws java.io.IOException
- Overrides:
commitJob
in class org.apache.hadoop.mapreduce.OutputCommitter
- Throws:
java.io.IOException