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>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>
  5. Enter a Reason for change, and then click Save Changes to commit the changes.
  6. Restart the service.