/** * For cleaning up the job's output after job failure. * * @param jobContext Context of the job whose output is being written. * @param status Final run state of the job, should be * {@link JobStatus#KILLED} or {@link JobStatus#FAILED} * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final runstate as SUCCESSFUL. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final runstate as SUCCESSFUL. This is called * from the application master process for the entire job. This is guaranteed * to only be called once. If it throws an exception the entire job will * fail. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final runstate as SUCCESSFUL. This is called * from the application master process for the entire job. This is guaranteed * to only be called once. If it throws an exception the entire job will * fail. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For aborting an unsuccessful job's output. Note that this is invoked for * jobs with final runstate as {@link JobStatus#FAILED} or * {@link JobStatus#KILLED}. This is called from the application * master process for the entire job. This may be called multiple times. * * @param jobContext Context of the job whose output is being written. * @param status final runstate of the job * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final runstate as SUCCESSFUL. This is called * from the application master process for the entire job. This is guaranteed * to only be called once. If it throws an exception the entire job will * fail. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For committing job's output after successful job completion. Note that this * is invoked for jobs with final runstate as SUCCESSFUL. This is called * from the application master process for the entire job. This is guaranteed * to only be called once. If it throws an exception the entire job will * fail. * * @param jobContext Context of the job whose output is being written. * @throws IOException */ public void commitJob(JobContext jobContext) throws IOException { cleanupJob(jobContext); }
/** * For aborting an unsuccessful job's output. Note that this is invoked for * jobs with final runstate as {@link JobStatus#FAILED} or * {@link JobStatus#KILLED} * * @param jobContext Context of the job whose output is being written. * @param status final runstate of the job * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * For aborting an unsuccessful job's output. Note that this is invoked for * jobs with final runstate as {@link JobStatus#FAILED} or * {@link JobStatus#KILLED}. This is called from the application * master process for the entire job. This may be called multiple times. * * @param jobContext Context of the job whose output is being written. * @param status final runstate of the job * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * For aborting an unsuccessful job's output. Note that this is invoked for * jobs with final runstate as {@link JobStatus#FAILED} or * {@link JobStatus#KILLED}. This is called from the application * master process for the entire job. This may be called multiple times. * * @param jobContext Context of the job whose output is being written. * @param status final runstate of the job * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * For aborting an unsuccessful job's output. Note that this is invoked for * jobs with final runstate as {@link JobStatus#FAILED} or * {@link JobStatus#KILLED}. This is called from the application * master process for the entire job. This may be called multiple times. * * @param jobContext Context of the job whose output is being written. * @param status final runstate of the job * @throws IOException */ public void abortJob(JobContext jobContext, int status) throws IOException { cleanupJob(jobContext); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. * @deprecated Use {@link #commitJob(org.apache.hadoop.mapreduce.JobContext)} * or {@link #abortJob(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.mapreduce.JobStatus.State)} * instead. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. * @deprecated Use {@link #commitJob(org.apache.hadoop.mapreduce.JobContext)} * or {@link #abortJob(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.mapreduce.JobStatus.State)} * instead. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. * @deprecated Use {@link #commitJob(org.apache.hadoop.mapreduce.JobContext)} * or {@link #abortJob(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.mapreduce.JobStatus.State)} * instead. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. * @deprecated Use {@link #commitJob(org.apache.hadoop.mapreduce.JobContext)} * or {@link #abortJob(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.mapreduce.JobStatus.State)} * instead. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
/** * This method implements the new interface by calling the old method. Note * that the input types are different between the new and old apis and this * is a bridge between the two. * @deprecated Use {@link #commitJob(org.apache.hadoop.mapreduce.JobContext)} * or {@link #abortJob(org.apache.hadoop.mapreduce.JobContext, org.apache.hadoop.mapreduce.JobStatus.State)} * instead. */ @Override @Deprecated public final void cleanupJob(org.apache.hadoop.mapreduce.JobContext context ) throws IOException { cleanupJob((JobContext) context); }
@Override public void cleanupJob(org.apache.hadoop.mapreduce.JobContext context) throws IOException { baseCommitter.cleanupJob(hackJobContext(context)); }
protected void runJobCleanupTask(TaskUmbilicalProtocol umbilical) throws IOException { // set phase for this task setPhase(TaskStatus.Phase.CLEANUP); getProgress().setStatus("cleanup"); // do the cleanup conf.getOutputCommitter().cleanupJob(jobContext); done(umbilical); }