Package org.apache.hadoop.hbase.rsgroup
Class RSGroupMajorCompactionTTL
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.util.compaction.MajorCompactor
org.apache.hadoop.hbase.util.compaction.MajorCompactorTTL
org.apache.hadoop.hbase.rsgroup.RSGroupMajorCompactionTTL
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
This script takes an rsgroup as argument and compacts part/all of regions of that table based on
the table's TTL.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactor
clusterCompactionQueues, connection, ERRORS, executor, sleepForMs, storesToCompact, tableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compactTTLRegionsOnGroup
(org.apache.hadoop.conf.Configuration conf, String rsgroup, int concurrency, long sleep, int numServers, int numRegions, boolean dryRun, boolean skipWait) protected org.apache.hbase.thirdparty.org.apache.commons.cli.Options
static void
int
Methods inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactorTTL
compactRegionsTTLOnTable, getMajorCompactionRequest, getStoresRequiringCompaction
Methods inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactor
compactAllRegions, getCommonOptions, printUsage, setNumRegions, setNumServers, setSkipWait, shutdown
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
-
-
Constructor Details
-
RSGroupMajorCompactionTTL
@Private RSGroupMajorCompactionTTL()
-
-
Method Details
-
compactTTLRegionsOnGroup
public int compactTTLRegionsOnGroup(org.apache.hadoop.conf.Configuration conf, String rsgroup, int concurrency, long sleep, int numServers, int numRegions, boolean dryRun, boolean skipWait) throws Exception - Throws:
Exception
-
getOptions
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Overrides:
run
in classMajorCompactorTTL
- Throws:
Exception
-
main
- Throws:
Exception
-