@Override public void commitAttemptOutput(OutputAttemptContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.commitAttemptOutput(context); } finally { heartbeat.unregister(counter); } }
@Override public void setupAttemptOutput(OutputAttemptContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.setupAttemptOutput(context); } finally { heartbeat.unregister(counter); } }
@Override public void cleanupAttemptOutput(OutputAttemptContext context) throws IOException, InterruptedException { if (context == null) { throw new IllegalArgumentException("context must not be null"); //$NON-NLS-1$ } Counter counter = context.getCounter(); heartbeat.register(counter); try { entity.cleanupAttemptOutput(context); } finally { heartbeat.unregister(counter); } }
containerPath)).initCause(e); context.getCounter().add(1);
containerPath)).initCause(e); context.getCounter().add(1);
throw e; context.getCounter().add(1);
context.getCounter(), profile.getLocalFileSystem(), profile.getFileSystem(), attempt, target); } else { Path attempt = getAttemptOutput(context); profile.isOutputStaging())); HadoopDataSourceUtil.move(context.getCounter(), profile.getFileSystem(), attempt, target);