BytesWritableCompactionReducerTest.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:dataSqueeze 作者:
@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);
    reduceDriver.withPathOutput(NullWritable.get(), value1, "value/target/path");
    reduceDriver.withPathOutput(NullWritable.get(), value2, "value/target/path");
    reduceDriver.runTest();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号