You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by vi...@nokia.com on 2010/03/25 04:08:03 UTC
Stargate response strange
I am trying out using stargate as rest api interface to query my table.
Try
http://localhost:8085/contacts/1
Got respnse
<CellSet>
<Row key="MQ==">
<Cell timestamp="1269484727327" column="bmFtZTpGaXJzdE5hbWU=">S2V2aW4=</Cell>
</Row>
</CellSet>
The row key, column name, and value are all coded. Anyone seen this problem before?
Any help is appreciated.
-Victor
Re: Stargate response strange
Posted by vi...@nokia.com.
Jonathan,
Thank you for the explanation. It makes all the sense.
Victor
On 3/25/10 11:21 AM, "ext Jonathan Gray" <jg...@facebook.com> wrote:
Victor,
Rows, column qualifiers, and values are all byte[] in HBase. Since they can be any binary (but you cannot just put any binary data into XML or other formats) they must be encoded in some way. Base64 is a common way to represent binary data in ASCII.
JG
> -----Original Message-----
> From: victor.hong@nokia.com [mailto:victor.hong@nokia.com]
> Sent: Thursday, March 25, 2010 7:54 AM
> To: hbase-user@hadoop.apache.org; jesper.utoft@gmail.com
> Subject: Re: Stargate response strange
>
> Hi Jesper,
>
> Thanks for answering my questions. Any reason that they are base64
> encoded?
>
>
> On 3/25/10 3:31 AM, "ext Jesper Utoft" <je...@gmail.com> wrote:
>
> As always they are base64 encoded. so you have to decode them!
>
> 2010/3/25 <vi...@nokia.com>
>
> > I am trying out using stargate as rest api interface to query my
> table.
> >
> > Try
> > http://localhost:8085/contacts/1
> >
> > Got respnse
> >
> > <CellSet>
> > <Row key="MQ==">
> > <Cell timestamp="1269484727327"
> > column="bmFtZTpGaXJzdE5hbWU=">S2V2aW4=</Cell>
> > </Row>
> > </CellSet>
> >
> > The row key, column name, and value are all coded. Anyone seen this
> problem
> > before?
> >
> > Any help is appreciated.
> > -Victor
> >
RE: Stargate response strange
Posted by Jonathan Gray <jg...@facebook.com>.
Victor,
Rows, column qualifiers, and values are all byte[] in HBase. Since they can be any binary (but you cannot just put any binary data into XML or other formats) they must be encoded in some way. Base64 is a common way to represent binary data in ASCII.
JG
> -----Original Message-----
> From: victor.hong@nokia.com [mailto:victor.hong@nokia.com]
> Sent: Thursday, March 25, 2010 7:54 AM
> To: hbase-user@hadoop.apache.org; jesper.utoft@gmail.com
> Subject: Re: Stargate response strange
>
> Hi Jesper,
>
> Thanks for answering my questions. Any reason that they are base64
> encoded?
>
>
> On 3/25/10 3:31 AM, "ext Jesper Utoft" <je...@gmail.com> wrote:
>
> As always they are base64 encoded. so you have to decode them!
>
> 2010/3/25 <vi...@nokia.com>
>
> > I am trying out using stargate as rest api interface to query my
> table.
> >
> > Try
> > http://localhost:8085/contacts/1
> >
> > Got respnse
> >
> > <CellSet>
> > <Row key="MQ==">
> > <Cell timestamp="1269484727327"
> > column="bmFtZTpGaXJzdE5hbWU=">S2V2aW4=</Cell>
> > </Row>
> > </CellSet>
> >
> > The row key, column name, and value are all coded. Anyone seen this
> problem
> > before?
> >
> > Any help is appreciated.
> > -Victor
> >
Re: Stargate response strange
Posted by vi...@nokia.com.
Hi Jesper,
Thanks for answering my questions. Any reason that they are base64 encoded?
On 3/25/10 3:31 AM, "ext Jesper Utoft" <je...@gmail.com> wrote:
As always they are base64 encoded. so you have to decode them!
2010/3/25 <vi...@nokia.com>
> I am trying out using stargate as rest api interface to query my table.
>
> Try
> http://localhost:8085/contacts/1
>
> Got respnse
>
> <CellSet>
> <Row key="MQ==">
> <Cell timestamp="1269484727327"
> column="bmFtZTpGaXJzdE5hbWU=">S2V2aW4=</Cell>
> </Row>
> </CellSet>
>
> The row key, column name, and value are all coded. Anyone seen this problem
> before?
>
> Any help is appreciated.
> -Victor
>
Re: Stargate response strange
Posted by Jesper Utoft <je...@gmail.com>.
As always they are base64 encoded. so you have to decode them!
2010/3/25 <vi...@nokia.com>
> I am trying out using stargate as rest api interface to query my table.
>
> Try
> http://localhost:8085/contacts/1
>
> Got respnse
>
> <CellSet>
> <Row key="MQ==">
> <Cell timestamp="1269484727327"
> column="bmFtZTpGaXJzdE5hbWU=">S2V2aW4=</Cell>
> </Row>
> </CellSet>
>
> The row key, column name, and value are all coded. Anyone seen this problem
> before?
>
> Any help is appreciated.
> -Victor
>