hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch huang <justlo...@gmail.com>
Subject Re: how to calculate key length in hbase?
Date Fri, 23 May 2014 00:43:14 GMT
it just say the value is get from FileInfo struct ,i do not see any
algorithm of caculate AVG_KEY_LEN.

On Thu, May 22, 2014 at 10:08 AM, Ted Yu <yuzhihong@gmail.com> wrote:

> Please take a look at HFileReaderV2 ctor (line 159 in trunk):
>
>     avgKeyLen = Bytes.toInt(fileInfo.get(FileInfo.AVG_KEY_LEN));
>
> Cheers
>
>
> On Wed, May 21, 2014 at 6:57 PM, ch huang <justlooks@gmail.com> wrote:
>
> > hi,maillist:
> >          i observe command " hbase hfile -m -f
> >
> >
> /hbase/pipe_url/da8687017e0d5ef0a274153426127ef3/info/9efda5a9f07e47248af4e998b42afafd"
> > output ,and i do not know how to calculate the key length,
> >
> > it's say
> > firstKey=2-F9150DB8A200991BCCA59B5D4E554181/info:url/1400052220386/Put
> >
> > and
> > avgKeyLen=53
> >
> > but
> > # echo 2-F9150DB8A200991BCCA59B5D4E554181|wc -c
> > 35
> > # echo 2-F9150DB8A200991BCCA59B5D4E554181/info:url/1400052220386/Put|wc
> -c
> > 62
> > none match the number 53,why?
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message