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
FieldsFields inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactor
clusterCompactionQueues, connection, ERRORS, executor, sleepForMs, storesToCompact, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompactTTLRegionsOnGroup(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.Optionsstatic voidintMethods inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactorTTL
compactRegionsTTLOnTable, getMajorCompactionRequest, getStoresRequiringCompactionMethods inherited from class org.apache.hadoop.hbase.util.compaction.MajorCompactor
compactAllRegions, getCommonOptions, printUsage, setNumRegions, setNumServers, setSkipWait, shutdownMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
runin interfaceorg.apache.hadoop.util.Tool- Overrides:
runin classMajorCompactorTTL- Throws:
Exception
-
main
- Throws:
Exception
-