public static void usage() {

    System.err.println("Usage: CompressionTest <path> "
      + StringUtils.join(Compression.Algorithm.values(), "|").toLowerCase(Locale.ROOT) + "\n"
      + "For example:\n" + "  hbase " + CompressionTest.class + " file:///tmp/testfile gz\n");
    System.exit(1);
  }
Compression validation test. Checks compression is working. Be sure to run on every node in your
cluster.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java