public static void setFsDefault(final Configuration c, final String uri) {
    c.set("fs.defaultFS", uri); // for hadoop 0.21+
  }
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