public static void setVersion(FileSystem fs, Path rootdir, int wait, int retries)
    throws IOException {
    setVersion(fs, rootdir, HConstants.FILE_SYSTEM_VERSION, wait, retries);
  }
Sets version of file system
@param fs      filesystem object
@param rootdir hbase root
@param wait    time to wait for retry
@param retries number of times to retry before failing
@throws IOException e
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java