Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> CacheConfig: Why is globalBlockCache static ?

Copy link to this message
Re: CacheConfig: Why is globalBlockCache static ?
As its name implies, it controls global caching.

Can you try using one HFile ?


On May 20, 2012, at 5:08 AM, Stéphane Campinas <[EMAIL PROTECTED]> wrote:

> Hi,
> I use in my application a HFile as a dictionary, and therefore I have multiple hfiles.
> I would like to know why the reference to the globalBlockCache is static ? Having it static prevents me from using multiple HFiles with the caching enabled.
> Indeed, it seems that a first call to #seekTo() loads a block of hfile1 in the cache. Another call to #seekTo(), but this time on hfile2, fails to find the key I want.
> Is there something I am missing ? Or do I have to use a single hfile ?
> Thanks,
> --