public static void validate(URI uri) throws IOException {
    if (StringUtils.isBlank(uri.getScheme())) {
      throw new IOException("No schema for uri: " + uri);
    }
    ConnectionRegistryURIFactory factory = FACTORIES.get(uri.getScheme().toLowerCase(Locale.ROOT));
    if (factory == null) {
      throw new IOException(
        "No factory registered for scheme " + uri.getScheme() + ", uri: " + uri);
    }
    factory.validate(uri);
  }
Check whether the given {@code uri} is valid.
<p/>
Notice that there is no fallback logic for this method, so passing an URI with null scheme can
not pass.
@throws IOException if this is not a valid connection registry URI
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionRegistryFactory.java