You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "Puri, Aseem" <As...@Honeywell.com> on 2009/04/10 12:14:21 UTC
Data not stored in lexicographical order exactly in HBase
Hi
I am a new HBase user. I have a small table in which I am
inserting some data. My row key increases as I insert data. Data is
stored properly in HBase in lexicographical order. But if I stop the
HBase server and start it again and insert data, data don't append at
last. It inserted at the starting of previous data or append in between
of the previous data. For example some region server shows me the stat
and end key as AAA140000 to AAA2000.
My "hbase.hregion.memcache.flush.size" property has value 1 MB and
"hbase.hregion.max.filesize" property has value 2 MB. I use such small
size to analyze the behavior of HBase deeply.
Can anyone please tell me why it is showing such behavior?
Thanks & Regards
Aseem Puri
RE: Data not stored in lexicographical order exactly in HBase
Posted by "Puri, Aseem" <As...@Honeywell.com>.
Thanks J-D,
I got my answer.
Aseem
-----Original Message-----
From: jdcryans@gmail.com [mailto:jdcryans@gmail.com] On Behalf Of Jean-Daniel Cryans
Sent: Friday, April 10, 2009 6:54 PM
To: hbase-user@hadoop.apache.org
Subject: Re: Data not stored in lexicographical order exactly in HBase
What you see seems normal. AAA140000 is < than AAA2000. Don't forget
that in a lexicographical order, the comparison starts on the left so
AAA is equal then 1 is < 2, the remaining chars don't matter.
Does it answer your question?
J-D
On Fri, Apr 10, 2009 at 6:14 AM, Puri, Aseem <As...@honeywell.com> wrote:
> Hi
>
> I am a new HBase user. I have a small table in which I am
> inserting some data. My row key increases as I insert data. Data is
> stored properly in HBase in lexicographical order. But if I stop the
> HBase server and start it again and insert data, data don't append at
> last. It inserted at the starting of previous data or append in between
> of the previous data. For example some region server shows me the stat
> and end key as AAA140000 to AAA2000.
>
>
>
> My "hbase.hregion.memcache.flush.size" property has value 1 MB and
> "hbase.hregion.max.filesize" property has value 2 MB. I use such small
> size to analyze the behavior of HBase deeply.
>
>
>
> Can anyone please tell me why it is showing such behavior?
>
>
>
> Thanks & Regards
>
> Aseem Puri
>
>
>
>
Re: Data not stored in lexicographical order exactly in HBase
Posted by Jean-Daniel Cryans <jd...@apache.org>.
What you see seems normal. AAA140000 is < than AAA2000. Don't forget
that in a lexicographical order, the comparison starts on the left so
AAA is equal then 1 is < 2, the remaining chars don't matter.
Does it answer your question?
J-D
On Fri, Apr 10, 2009 at 6:14 AM, Puri, Aseem <As...@honeywell.com> wrote:
> Hi
>
> I am a new HBase user. I have a small table in which I am
> inserting some data. My row key increases as I insert data. Data is
> stored properly in HBase in lexicographical order. But if I stop the
> HBase server and start it again and insert data, data don't append at
> last. It inserted at the starting of previous data or append in between
> of the previous data. For example some region server shows me the stat
> and end key as AAA140000 to AAA2000.
>
>
>
> My "hbase.hregion.memcache.flush.size" property has value 1 MB and
> "hbase.hregion.max.filesize" property has value 2 MB. I use such small
> size to analyze the behavior of HBase deeply.
>
>
>
> Can anyone please tell me why it is showing such behavior?
>
>
>
> Thanks & Regards
>
> Aseem Puri
>
>
>
>