用下面的命令运行
$ export HBASE_ROOT_LOGGER=DEBUG,console;
export HBASE_OPTS=" -Xloggc:/var/tmp/hbase-compact-gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M -XX:+PrintTenuringDistribution -XX:+PrintPromotionFailure -XX:+UseCMSInitiatingOccupancyOnly";
hbase org.apache.hadoop.hbase.regionserver.CompactionTool -major -mapred /hbaseantbak/data/default/ownfee201705/595f8793f42c9844c819fbefe65e6d39/f/ > >(tee /var/tmp/compact.out) 2>&1