public class PigOutputCommitter
extends org.apache.hadoop.mapreduce.OutputCommitter
Constructor and Description |
---|
PigOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context,
java.util.List<POStore> mapStores,
java.util.List<POStore> reduceStores) |
Modifier and Type | Method and Description |
---|---|
void |
abortJob(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.JobStatus.State state) |
void |
abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
cleanupJob(org.apache.hadoop.mapreduce.JobContext context) |
void |
commitJob(org.apache.hadoop.mapreduce.JobContext context) |
void |
commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
isRecoverySupported() |
boolean |
needsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
recoverTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static org.apache.hadoop.mapreduce.JobContext |
setUpContext(org.apache.hadoop.mapreduce.JobContext context,
POStore store) |
void |
setupJob(org.apache.hadoop.mapreduce.JobContext context) |
void |
setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static void |
storeCleanup(POStore store,
org.apache.hadoop.conf.Configuration conf) |
public static org.apache.hadoop.mapreduce.JobContext setUpContext(org.apache.hadoop.mapreduce.JobContext context, POStore store) throws java.io.IOException
java.io.IOException
public static void storeCleanup(POStore store, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOException
public boolean isRecoverySupported()
public void recoverTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
java.io.IOException
public void cleanupJob(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
cleanupJob
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void commitJob(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
commitJob
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void abortJob(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.mapreduce.JobStatus.State state) throws java.io.IOException
abortJob
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void abortTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
abortTask
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void commitTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
commitTask
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public boolean needsTaskCommit(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
needsTaskCommit
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void setupJob(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
setupJob
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
public void setupTask(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
setupTask
in class org.apache.hadoop.mapreduce.OutputCommitter
java.io.IOException
Copyright © 2007-2012 The Apache Software Foundation