public static boolean metaRegionExists(FileSystem fs, Path rootDir) throws IOException {
    Path metaRegionDir = getRegionDirFromRootDir(rootDir, RegionInfoBuilder.FIRST_META_REGIONINFO);
    return fs.exists(metaRegionDir);
  }
Checks if meta region exists
@param fs      file system
@param rootDir root directory of HBase installation
@return true if exists
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java