code: public boolean isPathAvailable(Path path) {
      try {
        Configuration conf = HadoopUtils.newConfiguration();
        FileSystem fs = FileSystem.get(this.getFsURI(), conf);
        if (fs.exists(path)) {
          return true;
        } else {
          log.warn("The data path [" + path + "] is not available on FileSystem: " + this.getFsURI());
          return false;
        }
      } catch (IOException ioe) {
        log.warn("Errors occurred while checking path [" + path + "] existence " + this.getFsURI(), ioe);
        return false;
      }
    }
docs: A helper utility for data/filesystem availability checking
  @param path The path to be checked.
  @return If the filesystem/path exists or not.