hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: HFile output - hfile.AVG_KEY_LEN always zero?
Date Tue, 08 Mar 2011 21:25:06 GMT
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
<otis_gospodnetic@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/
>
>

Mime
View raw message