public static boolean isHDFS(final Configuration conf) throws IOException {
    FileSystem fs = FileSystem.get(conf);
    String scheme = fs.getUri().getScheme();
    return scheme.equalsIgnoreCase("hdfs");
  }
Return true if this is a filesystem whose scheme is 'hdfs'.
@throws IOException from underlying FileSystem
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java