예제 #1
0
  @Before
  public void setUp() throws IOException {
    jobConfig = new Configuration();
    mockJobContext = EasyMock.createMock(JobContext.class);
    EasyMock.expect(mockJobContext.getConfiguration()).andReturn(jobConfig).anyTimes();
    EasyMock.replay(mockJobContext);

    ioPeon =
        new HadoopIOPeon(
            mockJobContext, new Path(tmpFolder.newFile().getParent()), overwritesFiles);
  }
예제 #2
0
 @Override
 public JobConf getJobConf(org.apache.hadoop.mapred.JobContext context) {
   return context.getJobConf();
 }