hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Sitruk <mikael.sit...@gmail.com>
Subject Re: book in inconsistent regarding disabling - major compaction
Date Thu, 05 Jan 2012 12:32:25 GMT
filled HBASE-5129

regards,
Mikael.S

On Thu, Jan 5, 2012 at 1:44 PM, <yuzhihong@gmail.com> wrote:

> Thanks for spotting this.
>
> Do you mind filing a Jira ?
>
>
>
> On Jan 5, 2012, at 3:02 AM, Mikael Sitruk <mikael.sitruk@gmail.com> wrote:
>
> > Hi all
> >
> > It seems that the book has some inconsistencies regarding the way to
> > disable major compactions
> >
> > According to the book in chapter 2.6.1.1. HBase Default Configuration
> >
> > hbase.hregion.majorcompaction - The time (in miliseconds) between 'major'
> > compactions of all HStoreFiles in a region. Default: 1 day. *Set to 0 to
> > disable automated major compactions*.
> >
> > Default: 86400000 (
> > http://hbase.apache.org/book.html#hbase_default_configurations)
> >
> > According to the book at chapter 2.8.2.8. Managed Compactions
> >
> > "A common administrative technique is to manage major compactions
> manually,
> > rather than letting HBase do it. By default,
> > HConstants.MAJOR_COMPACTION_PERIOD is one day and major compactions may
> > kick in when you least desire it - especially on a busy system. *To "turn
> > off" automatic major compactions set the value to Long.MAX_VALUE.*"
> > According to the code org.apache.hadoop.hbase.regionserver.Store.java,
> "0"
> > is the right answer.
> >
> >
> > Regards,
> > Mikael.S
>



-- 
Mikael.S

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