I can change HBaseStorage to make it treat \x and \u the same way as
PigStorage does.
That would mean that anyone who actually has the string "\x00" in their key
would need to do something like "\\\\x0" though.

Open a jira?

On Thu, Jun 23, 2011 at 11:25 AM, Juan Martin Pampliega <
[email protected]> wrote:

> Hi,
>
> I have columns in HBase which contain names with long numbers and are
> stored
> as bytes. I'm using pig 0.8.1 and I'm trying to load the data stored in
> them. When scanning the table in the HBase shell the column name appears
> like this:
>
> group_info:\x00\x00\x00\x00\x00\x00\x00\x01
>
> I need to escape the backslash otherwise it throws an error when trying to
> use it in a column name so I tried loading it using:
> LOAD 'hbase://SampleTable' USING
>
> org.apache.pig.backend.hadoop.hbase.HBaseStorage('group_info:\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01')
>
> But no data is load.
>
> Any pointers on how to achieve this?
>
> PD: I'm using HBase 0.90.3.
>

Reply via email to