Merge pull request #1 from offermannu/offermannu-patch-HBASE-25839

Update Import.java
This commit is contained in:
offermannu 2021-05-05 13:49:20 +02:00 committed by GitHub
commit b03ea4b45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -135,9 +135,7 @@ public class Import extends Configured implements Tool {
@Override @Override
public void write(DataOutput out) throws IOException { public void write(DataOutput out) throws IOException {
out.writeInt(PrivateCellUtil.estimatedSerializedSizeOfKey(kv)); KeyValueUtil.write(new KeyValue(kv), out);
out.writeInt(0);
PrivateCellUtil.writeFlatKey(kv, out);
} }
@Override @Override
@ -219,7 +217,7 @@ public class Import extends Configured implements Tool {
// skip if we filtered it out // skip if we filtered it out
if (kv == null) continue; if (kv == null) continue;
Cell ret = convertKv(kv, cfRenameMap); Cell ret = convertKv(kv, cfRenameMap);
context.write(new CellWritableComparable(ret), ret); context.write(new CellWritableComparable(ret), new MapReduceExtendedCell(ret));
} }
} }
} catch (InterruptedException e) { } catch (InterruptedException e) {