/** {@inheritDoc} */ @Override public void run(Context ctx) throws IOException, InterruptedException { try { super.run(ctx); } catch (HadoopTaskCancelledException e) { cancelledTasks.incrementAndGet(); throw e; } }
mapper.run(new WrappedMapper().getMapContext(hadoopCtx));
/** * Invokes {@code Mapper#run(Context)} internally. * Clients can override this method and implement customized {@code run} method. * @param context current context * @throws IOException if task is failed by I/O error * @throws InterruptedException if task execution is interrupted */ protected void runInternal(Context context) throws IOException, InterruptedException { super.run(context); }
@Override public void run() { try { mapper.run(subcontext); } catch (Throwable ie) { throwable = ie; } finally { try { reader.close(); } catch (IOException ignore) { } } } }
@Override public void run() { try { mapper.run(subcontext); } catch (Throwable ie) { throwable = ie; } finally { try { reader.close(); } catch (IOException ignore) { } } } }
@Override public void run(Context context) throws IOException, InterruptedException { // Find the InputProcessor from the TaggedInputSplit. if(delegate == null) { TaggedInputSplit inputSplit = (TaggedInputSplit) context.getInputSplit(); log.info("[profile] Got input split. Going to look at DC."); delegate = InstancesDistributor.loadInstance(context.getConfiguration(), Mapper.class, inputSplit.getInputProcessorFile(), true); log.info("[profile] Finished. Calling run() on delegate."); } delegate.run(context); } }
@SuppressWarnings("unchecked") public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); } }
@Override public void run(Context context) throws IOException, InterruptedException { // Find the InputProcessor from the TaggedInputSplit. if(delegate == null) { TaggedInputSplit inputSplit = (TaggedInputSplit) context.getInputSplit(); log.info("[profile] Got input split. Going to look at DC."); delegate = InstancesDistributor.loadInstance(context.getConfiguration(), Mapper.class, inputSplit.getInputProcessorFile(), true); log.info("[profile] Finished. Calling run() on delegate."); } delegate.run(context); } }
@SuppressWarnings("unchecked") public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); } }
@SuppressWarnings("unchecked") public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); } }
@SuppressWarnings("unchecked") public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); } }
@SuppressWarnings("unchecked") public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); } }
@Override public void run(Context context) throws IOException, InterruptedException { setup(context); mapper.run(context); cleanup(context); }
@Override public void run(Context context) throws IOException, InterruptedException { setup(context); getDelegate(context).run(context); cleanup(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }
@SuppressWarnings("unchecked") void runMapper(TaskInputOutputContext context, int index) throws IOException, InterruptedException { Mapper mapper = mappers.get(index); RecordReader rr = new ChainRecordReader(context); RecordWriter rw = new ChainRecordWriter(context); Mapper.Context mapperContext = createMapContext(rr, rw, context, getConf(index)); mapper.run(mapperContext); rr.close(); rw.close(context); }