Configure the compaction speed using Cloudera Manager
- Go to the HBase service.
- Click the Configuration tab.
- Select HBase or HBase Service-Wide.
- Search for HBase Service Advanced Configuration Snippet (Safety Valve) for
hbase-site.xml. Paste the relevant properties from the following example
into the field and modify the values as needed:
<property> <name>hbase.hstore.compaction.throughput.higher.bound</name> <value>20971520</value> <description>The default is 20 MB/sec</description> </property> <property> <name>hbase.hstore.compaction.throughput.lower.bound</name> <value>10485760</value> <description>The default is 10 MB/sec</description> </property> <property> <name>hbase.hstore.compaction.throughput.offpeak</name> <value>9223372036854775807</value> <description>The default is Long.MAX_VALUE, which effectively means no limitation</description> </property> <property> <name>hbase.offpeak.start.hour</name> <value>20</value> <description>When to begin using off-peak compaction settings, expressed as an integer between 0 and 23.</description> </property> <property> <name>hbase.offpeak.end.hour</name> <value>6</value> <description>When to stop using off-peak compaction settings, expressed as an integer between 0 and 23.</description> </property> <property> <name>hbase.hstore.compaction.throughput.tune.period</name> <value>60000</value> </property>
- Enter a Reason for change, and then click Save Changes to commit the changes.
- Restart the service.