@Override protected void setup(Mapper.Context context) throws IOException, InterruptedException { super.setup(context); logger.info("in setup of " + context.getTaskAttemptID().toString()); String fileName = ((FileSplit) context.getInputSplit()).getPath() + ""; System.out.println("in stdout" + context.getTaskAttemptID().toString() + " " + fileName); System.err.println("in stderr" + context.getTaskAttemptID().toString()); }
public MemoryMapContext(final Mapper.Context context) throws IOException, InterruptedException { super( context.getConfiguration(), context.getTaskAttemptID() == null ? new TaskAttemptID() : context.getTaskAttemptID(), null, null, context.getOutputCommitter(), null, context.getInputSplit()); this.context = context; this.globalConfiguration = context.getConfiguration(); }