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
|
@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) {
|
||||||
|
|
Loading…
Reference in New Issue