yes, hbase-site.xml is the right place
On Fri, Sep 20, 2013 at 1:26 PM, Jason Huang <[email protected]> wrote: > Premal, > > So this should be set at /conf/hbase-site.xml? > > thanks, > > Jason > > > On Fri, Sep 20, 2013 at 4:15 PM, Premal Shah <[email protected] > >wrote: > > > <!-- Disabling automatic major compaction --> > > <property> > > <name>hbase.hregion.majorcompaction</name> > > <value>0</value> > > </property> > > > > > > > > On Fri, Sep 20, 2013 at 1:06 PM, Jason Huang <[email protected]> > > wrote: > > > > > Hello, > > > > > > The hbase book at apache website has the following statement about > > > controlling major compaction: "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 0." > > > > > > So... If we choose to let HBase do it, is there a way we can set to let > > > HBase do the major compaction at a certain time of the day? Or is it > > random > > > and could be at any time of the day? > > > > > > And if we set HConstants.MAJOR_COMPACTION_PERIOD to 0, that means we > have > > > to kick off major compaction manually through HBase shell or write a > > script > > > to enter shell and execute the major compaction at a certain time? > Also, > > > where should I set HConstants.MAJOR_COMPACTION_PERIOD = 0? In > > > /conf/hbase-site.xml? > > > > > > thanks! > > > > > > Jason > > > > > > > > > > > -- > > Regards, > > Premal Shah. > > > -- Regards, Premal Shah.
