public static Path getRootDir(final Configuration c) throws IOException {
    Path p = new Path(c.get(HConstants.HBASE_DIR));
    FileSystem fs = p.getFileSystem(c);
    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());
  }
Get the path for the root data directory
@param c configuration
@return {@link Path} to hbase root directory from configuration as a qualified Path.
@throws IOException e
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java