public class KVSortReducerWithDupKeyCheck
extends org.apache.hadoop.hbase.mapreduce.KeyValueSortReducer
KeyValueSortReducer, add logic to check whether the row key has duplicated
if there is duplicated key, throws IllegalStateException| Constructor and Description |
|---|
KVSortReducerWithDupKeyCheck() |
protected void reduce(org.apache.hadoop.hbase.io.ImmutableBytesWritable row,
Iterable<org.apache.hadoop.hbase.KeyValue> kvs,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
reduce in class org.apache.hadoop.hbase.mapreduce.KeyValueSortReducerIOExceptionInterruptedExceptionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.