Configure the compaction speed using Cloudera Manager

  1. Go to the HBase service.
  2. Click the Configuration tab.
  3. Select HBase or HBase Service-Wide.
  4. 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>
  5. Enter a Reason for change, and then click Save Changes to commit the changes.
  6. Restart the service.