Hi -

 

I am using 0.89 for bulk loading. In my reducer:

 

            ImmutableBytesWritable ibw = new
ImmutableBytesWritable(key.copyBytes());

            KeyValue kv = new KeyValue(key.copyBytes(),
Bytes.toBytes(context.getConfiguration().get("fam", "count")),
Bytes.toBytes("c"), 100L,"hello".getBytes());

            context.write(ibw, kv);

 

The keys and the timestamp seem to go into HBase fine when I use the
'completebulkload' bulk loader, but the hbase shell shows
value=\x00\x00\x00\x01 for every value. The keys and timestamps are
fine. I've read all the relevant doc's and posts that I can find on
this, but I'm still scratching my head about what I am doing wrong to
generate the value.

 

-g

Reply via email to