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>52428800</value> <description>The default is 50 MiB/sec</description> </property> <property> <name>hbase.hstore.compaction.throughput.lower.bound</name> <value>104857600</value> <description>The default is 100 MiB/sec</description> </property> <property> <name>hbase.hstore.compaction.throughput.offpeak</name> <value>104857600</value> <description>The default is 100 MiB/sec</description> </property> <property> <name>hbase.offpeak.start.hour</name> <value>20</value> <description>The start of off-peak hours, expressed as an integer between 0 and 23, inclusive. Set to -1 to disable off-peak.</description> </property> <property> <name>hbase.offpeak.end.hour</name> <value>6</value> <description>The end of off-peak hours, expressed as an integer between 0 and 23, inclusive. Set to -1 to disable off-peak.</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.