Merge pull request #1 from offermannu/offermannu-patch-HBASE-25839
Update Import.java
This commit is contained in:
commit
b03ea4b45b
|
@ -135,9 +135,7 @@ public class Import extends Configured implements Tool {
|
|||
|
||||
@Override
|
||||
public void write(DataOutput out) throws IOException {
|
||||
out.writeInt(PrivateCellUtil.estimatedSerializedSizeOfKey(kv));
|
||||
out.writeInt(0);
|
||||
PrivateCellUtil.writeFlatKey(kv, out);
|
||||
KeyValueUtil.write(new KeyValue(kv), out);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -219,7 +217,7 @@ public class Import extends Configured implements Tool {
|
|||
// skip if we filtered it out
|
||||
if (kv == null) continue;
|
||||
Cell ret = convertKv(kv, cfRenameMap);
|
||||
context.write(new CellWritableComparable(ret), ret);
|
||||
context.write(new CellWritableComparable(ret), new MapReduceExtendedCell(ret));
|
||||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
|
|
Loading…
Reference in New Issue