|
|
-
Data blocks are not cached on read in Hbase0.94
jlei liu 2012-09-08, 15:15
I use HBase0.94 version, when reading data only index blocks are cached, the data blocks are not cached, is right? If right, why don't cache the data blocks on read? LiuLei, Thanks.
-
Re: Data blocks are not cached on read in Hbase0.94
Ted Yu 2012-09-08, 16:21
Which 0.94 release are you using ?
Thanks
On Sat, Sep 8, 2012 at 8:15 AM, jlei liu <[EMAIL PROTECTED]> wrote:
> I use HBase0.94 version, when reading data only index blocks are cached, > the data blocks are not cached, is right? If right, why don't cache the > data blocks on read? > > > LiuLei, > Thanks. >
-
Re: Data blocks are not cached on read in Hbase0.94
jlei liu 2012-09-08, 16:37
Hbase0.94.1 version.
I read the HFileReaderV2.readBlock code again,when I set HColumnDescriptor.setBlockCacheEnabled is true, data blocks and index block are all cached, if I set HColumnDescriptor.setBlockCacheEnabled is false, only index blocks are cached, that right?
2012/9/9 Ted Yu <[EMAIL PROTECTED]>
> Which 0.94 release are you using ? > > Thanks > > On Sat, Sep 8, 2012 at 8:15 AM, jlei liu <[EMAIL PROTECTED]> wrote: > > > I use HBase0.94 version, when reading data only index blocks are cached, > > the data blocks are not cached, is right? If right, why don't cache the > > data blocks on read? > > > > > > LiuLei, > > Thanks. > > >
-
Re: Data blocks are not cached on read in Hbase0.94
Ted Yu 2012-09-08, 20:26
That's right. Please note the default value for this parameter:
public static final boolean DEFAULT_BLOCKCACHE = true; On Sat, Sep 8, 2012 at 9:37 AM, jlei liu <[EMAIL PROTECTED]> wrote:
> Hbase0.94.1 version. > > I read the HFileReaderV2.readBlock code again,when I set > HColumnDescriptor.setBlockCacheEnabled is true, > data blocks and index block are all cached, if I set > HColumnDescriptor.setBlockCacheEnabled is false, > only index blocks are cached, that right? > > 2012/9/9 Ted Yu <[EMAIL PROTECTED]> > > > Which 0.94 release are you using ? > > > > Thanks > > > > On Sat, Sep 8, 2012 at 8:15 AM, jlei liu <[EMAIL PROTECTED]> wrote: > > > > > I use HBase0.94 version, when reading data only index blocks are > cached, > > > the data blocks are not cached, is right? If right, why don't cache > the > > > data blocks on read? > > > > > > > > > LiuLei, > > > Thanks. > > > > > >
|
|