Whats 'key' in the below?  Is it a key of yours?  Its some
incrementing long?  When you create the KeyValue below, you are
setting this long as your row value.

The shell does best effort at Stringifying everything it sees.  It
passes all bytes via this function on emission:
http://people.apache.org/~stack/hbase-0.90.0-candidate-3/docs/apidocs/index.html
(Doc could be a bit better but you get the idea).

By what you print below, it looks like its a zero-padded long and
we're outputting it in HEX with each byte of the long escaped.

St.Ack

On Mon, Jan 17, 2011 at 9:30 AM, Geoff Hendrey <[email protected]> wrote:
> 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