@Test
public void testReduceParentKey() throws IOException {
configuration.set("compactionSourcePath", "/src/path");
configuration.set("compactionTargetPath", "/target/path");
values.add(value1);
values.add(value2);
reduceDriver.withInput(inputParentKey, values);
final BytesWritable bytesWritable = new BytesWritable("value/src/path".getBytes());
reduceDriver.withPathOutput(NullWritable.get(), value1, "value/target/path");
reduceDriver.withPathOutput(NullWritable.get(), value2, "value/target/path");
reduceDriver.runTest();
}
TextCompactionReducerTest.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:dataSqueeze
作者:
评论列表
文章目录