public static void setVersion(FileSystem fs, Path rootdir) throws IOException {
    setVersion(fs, rootdir, HConstants.FILE_SYSTEM_VERSION, 0,
      HConstants.DEFAULT_VERSION_FILE_WRITE_ATTEMPTS);
  }
Sets version of file system
@param fs      filesystem object
@param rootdir hbase root
@throws IOException e
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java