You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2011/03/08 22:00:05 UTC

HFile output - hfile.AVG_KEY_LEN always zero?

Hi,

I thought I could use the handy HFile from command line to give me some stats 
about a given region or HFile, like the average key and value lengths.
However, this is what I got:

$ hbase org.apache.hadoop.hbase.io.hfile.HFile -m -f 
hdfs://hackme/hbase/fifi/84f19e93c3d567a485aa6794043449e1/xx/8364597447655745527
...
hfile.AVG_KEY_LEN = \x00\x00\x00!
hfile.AVG_VALUE_LEN = \x00\x00\x00\x07

How come the average key length is 0?
I tried several HFiles and they all gave me the same results (although I also 
saw that "!" at the end of AVG_KEY_LEN can also be "#" and maybe some other 
characters)

Thanks,
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


Re: HFile output - hfile.AVG_KEY_LEN always zero?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Ah, great, thanks!

I'm using 0.89................. so I'll check this again once we have 0.90.* in 
place.


Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: Lars George <la...@gmail.com>
> To: user@hbase.apache.org
> Sent: Tue, March 8, 2011 8:03:31 PM
> Subject: Re: HFile output - hfile.AVG_KEY_LEN always zero?
> 
> This also has been improved in 0.90.0 as per
> 
> http://issues.apache.org/jira/browse/HBASE-3132
> 
> What version are you  on Otis?
> 
> Lars
> 
> On Tue, Mar 8, 2011 at 10:25 PM, Ryan Rawson <ry...@gmail.com> wrote:
> > Ascii  table tells me bang = 33
> >
> > http://www.asciitable.com/
> >
> > so the average key  len is 33.
> >
> > :-)
> >
> > -ryan
> >
> > On Tue, Mar  8, 2011 at 1:00 PM, Otis Gospodnetic
> > <ot...@yahoo.com>  wrote:
> >> Hi,
> >>
> >> I thought I could use the handy  HFile from command line to give me some 
>stats
> >> about a given region  or HFile, like the average key and value lengths.
> >> However, this is  what I got:
> >>
> >> $ hbase  org.apache.hadoop.hbase.io.hfile.HFile -m -f
> >>  
>hdfs://hackme/hbase/fifi/84f19e93c3d567a485aa6794043449e1/xx/8364597447655745527
> >>  ...
> >> hfile.AVG_KEY_LEN = \x00\x00\x00!
> >>  hfile.AVG_VALUE_LEN = \x00\x00\x00\x07
> >>
> >> How come the  average key length is 0?
> >> I tried several HFiles and they all gave me  the same results (although I 
>also
> >> saw that "!" at the end of  AVG_KEY_LEN can also be "#" and maybe some 
other
> >>  characters)
> >>
> >> Thanks,
> >> Otis
> >>  ----
> >> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> >> Lucene ecosystem  search :: http://search-lucene.com/
> >>
> >>
> >
> 

Re: HFile output - hfile.AVG_KEY_LEN always zero?

Posted by Lars George <la...@gmail.com>.
This also has been improved in 0.90.0 as per

http://issues.apache.org/jira/browse/HBASE-3132

What version are you on Otis?

Lars

On Tue, Mar 8, 2011 at 10:25 PM, Ryan Rawson <ry...@gmail.com> wrote:
> Ascii table tells me bang = 33
>
> http://www.asciitable.com/
>
> so the average key len is 33.
>
> :-)
>
> -ryan
>
> On Tue, Mar 8, 2011 at 1:00 PM, Otis Gospodnetic
> <ot...@yahoo.com> wrote:
>> Hi,
>>
>> I thought I could use the handy HFile from command line to give me some stats
>> about a given region or HFile, like the average key and value lengths.
>> However, this is what I got:
>>
>> $ hbase org.apache.hadoop.hbase.io.hfile.HFile -m -f
>> hdfs://hackme/hbase/fifi/84f19e93c3d567a485aa6794043449e1/xx/8364597447655745527
>> ...
>> hfile.AVG_KEY_LEN = \x00\x00\x00!
>> hfile.AVG_VALUE_LEN = \x00\x00\x00\x07
>>
>> How come the average key length is 0?
>> I tried several HFiles and they all gave me the same results (although I also
>> saw that "!" at the end of AVG_KEY_LEN can also be "#" and maybe some other
>> characters)
>>
>> Thanks,
>> Otis
>> ----
>> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
>> Lucene ecosystem search :: http://search-lucene.com/
>>
>>
>

Re: HFile output - hfile.AVG_KEY_LEN always zero?

Posted by Ryan Rawson <ry...@gmail.com>.
Ascii table tells me bang = 33

http://www.asciitable.com/

so the average key len is 33.

:-)

-ryan

On Tue, Mar 8, 2011 at 1:00 PM, Otis Gospodnetic
<ot...@yahoo.com> wrote:
> Hi,
>
> I thought I could use the handy HFile from command line to give me some stats
> about a given region or HFile, like the average key and value lengths.
> However, this is what I got:
>
> $ hbase org.apache.hadoop.hbase.io.hfile.HFile -m -f
> hdfs://hackme/hbase/fifi/84f19e93c3d567a485aa6794043449e1/xx/8364597447655745527
> ...
> hfile.AVG_KEY_LEN = \x00\x00\x00!
> hfile.AVG_VALUE_LEN = \x00\x00\x00\x07
>
> How come the average key length is 0?
> I tried several HFiles and they all gave me the same results (although I also
> saw that "!" at the end of AVG_KEY_LEN can also be "#" and maybe some other
> characters)
>
> Thanks,
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>