@Override
  public boolean deleteRecursive(Path path, FileSystem fileSystem) throws IOException {
    fileSystem.cancelDeleteOnExit(path);
    if (fileSystem.delete(path, true)) {
      LOG.info("Deleted directory: {} on fs with scheme {}", path, fileSystem.getScheme());
      return true;
    } else {
      return false;
    }
  }
Dummy cleanup service that just synchronously deletes files.
This is created for use in background threads such as compactor
or scheduled query runners.
ql/src/java/org/apache/hadoop/hive/ql/cleanup/SyncCleanupService.java