|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.OutputCommitter
org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
org.apache.hadoop.tools.mapred.CopyCommitter
public class CopyCommitter
The CopyCommitter class is DistCp's OutputCommitter implementation. It is responsible for handling the completion/cleanup of the DistCp run. Specifically, it does the following: 1. Cleanup of the meta-folder (where DistCp maintains its file-list, etc.) 2. Preservation of user/group/replication-factor on any directories that have been copied. (Files are taken care of in their map-tasks.) 3. Atomic-move of data from the temporary work-folder to the final path (if atomic-commit was opted for). 4. Deletion of files from the target that are missing at source (if opted for). 5. Cleanup of any partially copied files, from previous, failed attempts.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter |
|---|
PENDING_DIR_NAME, SUCCEEDED_FILE_NAME, SUCCESSFUL_JOB_OUTPUT_DIR_MARKER |
| Constructor Summary | |
|---|---|
CopyCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a output committer |
|
| Method Summary | |
|---|---|
void |
abortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hadoop.mapreduce.JobStatus.State state)
|
void |
commitJob(org.apache.hadoop.mapreduce.JobContext jobContext)
|
| Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter |
|---|
abortTask, abortTask, cleanupJob, commitTask, commitTask, getCommittedTaskPath, getCommittedTaskPath, getJobAttemptPath, getJobAttemptPath, getTaskAttemptPath, getTaskAttemptPath, getWorkPath, isRecoverySupported, needsTaskCommit, needsTaskCommit, recoverTask, setupJob, setupTask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyCommitter(org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
outputPath - the job's output pathcontext - the task's context
IOException - - Exception if any| Method Detail |
|---|
public void commitJob(org.apache.hadoop.mapreduce.JobContext jobContext)
throws IOException
commitJob in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitterIOException
public void abortJob(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hadoop.mapreduce.JobStatus.State state)
throws IOException
abortJob in class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||