hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: Stargate returns single value cell query result in encode format
Date Sun, 18 Jul 2010 22:02:13 GMT
Steve,

HBase stores keys and values as byte[]. They must be base64 encoded by Stargate to be XML-safe
when you request XML representation.

   - Andy

--- On Fri, 7/16/10, Steve Kuo <kuosenhao@gmail.com> wrote:

> From: Steve Kuo <kuosenhao@gmail.com>
> Subject: Stargate returns single value cell query result in encode format
> To: user@hbase.apache.org
> Date: Friday, July 16, 2010, 3:25 PM
> I am investigation Stargate to
> provide REST access and ran into an
> interesting quesiton.  I have a simple test table and
> when I scan it within
> the hbase shell, I got the following result.
> 
> hbase(main):028:0> scan 'test'
> ROW
> COLUMN+CELL
> 
>  row1             
>           column=data:1,
> timestamp=1278703763205,
> value=value1
>  row1             
>           column=data:a,
> timestamp=1278969106700,
> value=a
>  row2             
>           column=data:2,
> timestamp=1278703772510,
> value=value2
>  row2             
>           column=data:3,
> timestamp=1278703778936,
> value=value3
>  row3             
>           column=data:1,
> timestamp=1279318319309,
> value=row3
> 3 row(s) in 0.0610 seconds
> 
> Issuing http://localhost:58080/test/row* returns
> 
> <CellSet>
> <Row key="cm93MQ==">
> <Cell timestamp="1278703763205"
> column="ZGF0YTox">dmFsdWUx</Cell>
> <Cell timestamp="1278969106700"
> column="ZGF0YTph">YQ==</Cell>
> </Row>
> <Row key="cm93Mg==">
> <Cell timestamp="1278703772510"
> column="ZGF0YToy">dmFsdWUy</Cell>
> <Cell timestamp="1278703778936"
> column="ZGF0YToz">dmFsdWUz</Cell>
> </Row>
> <Row key="cm93Mw==">
> <Cell timestamp="1279318319309"
> column="ZGF0YTox">cm93Mw==</Cell>
> </Row>
> </CellSet>
> 
> Why are the row key, column and value data encoded? 
> How can they be return
> as text?
> 
> Thanks in advance.
> 


      


Mime
View raw message