Class CompactionTool

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.CompactionTool
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

@LimitedPrivate("Tools") public class CompactionTool extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    Input format that uses store files block location as input split locality.
    private static class 
     
    private static class 
    Class responsible to execute the Compaction on the specified path.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    private static final String
     
    private static final String
     
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private int
    doClient(org.apache.hadoop.fs.FileSystem fs, Set<org.apache.hadoop.fs.Path> toCompactDirs, boolean compactOnce, boolean major)
    Execute compaction, from this client, one path at the time.
    private int
    doMapReduce(org.apache.hadoop.fs.FileSystem fs, Set<org.apache.hadoop.fs.Path> toCompactDirs, boolean compactOnce, boolean major)
    Execute compaction, using a Map-Reduce job.
    private static boolean
    isFamilyDir(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
     
    private static boolean
    isRegionDir(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
     
    private static boolean
    isTableDir(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
     
    static void
    main(String[] args)
     
    private void
     
    private void
    printUsage(String message)
     
    int
    run(String[] args)
     

    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