public static void main(String[] args) throws Exception {
    if (args.length != 2) {
      usage();
      System.exit(1);
    }

    Configuration conf = new Configuration();
    Path path = new Path(args[0]);
    try (FileSystem fs = path.getFileSystem(conf)) {
      if (fs.exists(path)) {
        System.err.println("The specified path exists, aborting!");
        System.exit(1);
      }

      try {
        doSmokeTest(fs, path, args[1]);
      } finally {
        fs.delete(path, false);
      }
      System.out.println("SUCCESS");
    }
  }
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