private static Connection openConnection(Configuration conf, String uriConfKey,
      String zkClusterConfKey, String configPrefix) throws IOException {
      String uri = conf.get(uriConfKey);
      if (!StringUtils.isBlank(uri)) {
        try {
          return ConnectionFactory.createConnection(new URI(uri), conf);
        } catch (URISyntaxException e) {
          throw new IOException(
            "malformed connection uri: " + uri + ", please check config " + uriConfKey, e);
        }
      } else {
        String zkCluster = conf.get(zkClusterConfKey);
        Configuration clusterConf =
          HBaseConfiguration.createClusterConf(conf, zkCluster, configPrefix);
        return ConnectionFactory.createConnection(clusterConf);
      }
    }
@deprecated Since 3.0.0, will be removed in 4.0.0 Use {@link #targetUri} instead.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/SyncTable.java