That is right. I have tried following properties, in conf/hbase-site.xml. It looks it works to disable both major and minor (in some sense) compactions. Note these properties are defined in src/main/resources/hbase-default.xml, but putting the property there without recompiling the src, it will not work.
<property> <name>hbase.hstore.compactionThreshold</name> <value>100</value> <description> If more than this number of HStoreFiles in any one HStore (one HStoreFile is written per flush of memstore) then a compaction is run to rewrite all HStoreFiles files as one. Larger numbers put off compaction but when it runs, it takes longer to complete. </description> </property> <property> <name>hbase.hstore.blockingStoreFiles</name> <value>7</value> <description> If more than this number of StoreFiles in any one Store (one StoreFile is written per flush of MemStore) then updates are blocked for this HRegion until a compaction is completed, or until hbase.hstore.blockingWaitTime has been exceeded. </description> </property> <property> <name>hbase.hstore.blockingWaitTime</name> <value>90000</value> <description> The time an HRegion will block updates for after hitting the StoreFile limit defined by hbase.hstore.blockingStoreFiles. After this time has elapsed, the HRegion will stop blocking updates even if a compaction has not been completed. Default: 90 seconds. </description> </property> <property> <name>hbase.hstore.compaction.max</name> <value>100</value> <description>Max number of HStoreFiles to compact per 'minor' compaction. </description> </property> <property> <name>hbase.hregion.majorcompaction</name> <value>0</value> <description>The time (in miliseconds) between 'major' compactions of all HStoreFiles in a region. Default: 1 day. Set to 0 to disable automated major compactions. </description> </property> On Thu, Aug 9, 2012 at 7:03 AM, henry.kim <[email protected]> wrote: > yes, there is a property in hbase-site.xml > > check the property which is named 'hbase.hregion.majorcompaction' > > if you set it to value 0, there will be no automatic compactions. > > 2012. 8. 9., 오후 7:43, Richard Tang <[email protected]> 작성: > > > I am using hbase 0.92.1 and want to disable compaction (both major and > > minor compactions) for a period of time. is that configurable in hbase? > >
