public class CarbonOutputCommitter
extends org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
| Constructor and Description |
|---|
CarbonOutputCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortJob(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.JobStatus.State state)
Update the tablestatus as fail if any fail happens.And also clean up the temp folders if any
are existed.
|
void |
commitJob(org.apache.hadoop.mapreduce.JobContext context)
Update the tablestatus as success after job is success
|
void |
setupJob(org.apache.hadoop.mapreduce.JobContext context)
Update the tablestatus with inprogress while setup the job.
|
void |
setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
abortTask, abortTask, cleanupJob, commitTask, commitTask, getCommittedTaskPath, getCommittedTaskPath, getCommittedTaskPath, getJobAttemptPath, getJobAttemptPath, getJobAttemptPath, getTaskAttemptPath, getTaskAttemptPath, getWorkPath, isRecoverySupported, needsTaskCommit, needsTaskCommit, recoverTaskpublic CarbonOutputCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
IOExceptionpublic void setupJob(org.apache.hadoop.mapreduce.JobContext context)
throws IOException
setupJob in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommittercontext - IOExceptionpublic void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
setupTask in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitterIOExceptionpublic void commitJob(org.apache.hadoop.mapreduce.JobContext context)
throws IOException
commitJob in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommittercontext - IOExceptionpublic void abortJob(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.JobStatus.State state)
throws IOException
abortJob in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommittercontext - state - IOExceptionCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.