public Path createRootDir(boolean create) throws IOException {
    FileSystem fs = FileSystem.get(this.conf);
    Path hbaseRootdir = getDefaultRootDirPath(create);
    CommonFSUtils.setRootDir(this.conf, hbaseRootdir);
    fs.mkdirs(hbaseRootdir);
    FSUtils.setVersion(fs, hbaseRootdir);
    return hbaseRootdir;
  }
Creates an hbase rootdir in user home directory. Also creates hbase version file. Normally you
won't make use of this method. Root hbasedir is created for you as part of mini cluster
startup. You'd only use this method if you were doing manual operation.
@param create This flag decides whether to get a new root or data directory path or not, if it
              has been fetched already. Note : Directory will be made irrespective of whether
              path has been fetched or not. If directory already exists, it will be overwritten
@return Fully qualified path to hbase root dir
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java