java.lang.Object org.apache.hadoop.mapreduce.OutputCommitter org.apache.hadoop.mapred.OutputCommitter
public abstract class OutputCommitter
OutputCommitter
describes the commit of task output for a Map-Reduce job.
The Map-Reduce framework relies on the OutputCommitter
of the job to:
FileOutputCommitter
, JobContext
, TaskAttemptContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
OutputCommitter
public OutputCommitter()
public abstract void setupJob(JobContext jobContext) throws IOException
jobContext
- Context of the job whose output is being written.
IOException
- if temporary output could not be created
@Deprecated public void cleanupJob(JobContext jobContext) throws IOException
commitJob(JobContext)
or abortJob(JobContext, int)
instead
IOException
public void commitJob(JobContext jobContext) throws IOException
JobStatus.SUCCEEDED
.
jobContext
- Context of the job whose output is being written.
IOException
public void abortJob(JobContext jobContext, int status) throws IOException
jobContext
- Context of the job whose output is being written.
status
- Final run state of the job, should be JobStatus.KILLED
or JobStatus.FAILED
IOException
public abstract void setupTask(TaskAttemptContext taskContext) throws IOException
taskContext
- Context of the task whose output is being written.
IOException
public abstract boolean needsTaskCommit(TaskAttemptContext taskContext) throws IOException
taskContext
-
IOException
public abstract void commitTask(TaskAttemptContext taskContext) throws IOException
taskContext
- Context of the task whose output is being written.
IOException
- if commit is not
public abstract void abortTask(TaskAttemptContext taskContext) throws IOException
taskContext
-
IOException
public final void setupJob(JobContext jobContext) throws IOException
setupJob
in class OutputCommitter
jobContext
- Context of the job whose output is being written.
IOException
- if temporary output could not be created
@Deprecated public final void cleanupJob(JobContext context) throws IOException
cleanupJob
in class OutputCommitter
IOException
public final void commitJob(JobContext context) throws IOException
commitJob
in class OutputCommitter
context
- Context of the job whose output is being written.
IOException
public final void abortJob(JobContext context, JobStatus.State runState) throws IOException
abortJob
in class OutputCommitter
context
- Context of the job whose output is being written.
runState
- final run state of the job, should be either JobStatus.State.KILLED
or JobStatus.State.FAILED
IOException
public final void setupTask(TaskAttemptContext taskContext) throws IOException
setupTask
in class OutputCommitter
taskContext
- Context of the task whose output is being written.
IOException
public final boolean needsTaskCommit(TaskAttemptContext taskContext) throws IOException
needsTaskCommit
in class OutputCommitter
IOException
public final void commitTask(TaskAttemptContext taskContext) throws IOException
commitTask
in class OutputCommitter
taskContext
- Context of the task whose output is being written.
IOException
- if commit is not
public final void abortTask(TaskAttemptContext taskContext) throws IOException
abortTask
in class OutputCommitter
IOException
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4