public static boolean isHFileFormat(final FileSystem fs, final Path path) throws IOException {
    return isHFileFormat(fs, fs.getFileStatus(path));
  }
Returns true if the specified file has a valid HFile Trailer.
@param fs   filesystem
@param path Path to file to verify
@return true if the file has a valid HFile Trailer, otherwise false
@throws IOException if failed to read from the underlying stream
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java