private void cleanup(HadoopDataSourceCore core) throws IOException, InterruptedException {
   core.cleanupAttemptOutput(context);
   core.cleanupTransactionOutput(context.getTransactionContext());
 }
 private void commitAttempt(HadoopDataSourceCore core) throws IOException, InterruptedException {
   core.commitAttemptOutput(context);
   core.cleanupAttemptOutput(context);
 }