public static Path validateRootPath(Path root) throws IOException {
    try {
      URI rootURI = new URI(root.toString());
      String scheme = rootURI.getScheme();
      if (scheme == null) {
        throw new IOException("Root directory does not have a scheme");
      }
      return root;
    } catch (URISyntaxException e) {
      throw new IOException("Root directory path is not a valid " + "URI -- check your "
        + HConstants.HBASE_DIR + " configuration", e);
    }
  }
Verifies root directory path is a valid URI with a scheme
@param root root directory path
@return Passed <code>root</code> argument.
@throws IOException if not a valid URI with a scheme
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java