Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26149 Further improvements on ConnectionRegistry implementations
  3. HBASE-28436

Use connection url to specify the connection registry information

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      Allow sepcifying the connection info of a HBase cluster through an URI.

      For now, we support two types of scheme:
      hbase+rpc, which indicates RpcConnectionRegistry
      hbase+zk, which indicates ZKConnectionRegistry

      For hbase+rpc, we will use the authority part of the URI as bootstrap node when creating RpcConnectionRegistry.
      For hbase+zk, we will use the authority part of the URI as zookeeper quorum, and the path part of the URI as zookeeper parent znode when creating ZKConnectionRegistry.

      We introduced several new methods in ConnectionRegistry class which accept URI as parameter. And if we can not find a registered factory for the scheme of the URI, we will fallback to use the old logic, to create ConnectionRegistry through configurations.
      Show
      Allow sepcifying the connection info of a HBase cluster through an URI. For now, we support two types of scheme: hbase+rpc, which indicates RpcConnectionRegistry hbase+zk, which indicates ZKConnectionRegistry For hbase+rpc, we will use the authority part of the URI as bootstrap node when creating RpcConnectionRegistry. For hbase+zk, we will use the authority part of the URI as zookeeper quorum, and the path part of the URI as zookeeper parent znode when creating ZKConnectionRegistry. We introduced several new methods in ConnectionRegistry class which accept URI as parameter. And if we can not find a registered factory for the scheme of the URI, we will fallback to use the old logic, to create ConnectionRegistry through configurations.

    Description

      As describe in this email from ndimiduk

      https://lists.apache.org/thread/98wqlkqvlnmpx3r7yrg9mw4pqz9ppofh

      The first advantage here is that, we can encode the connection registry implementation in the scheme of the connection url, so for replication, we can now support cluster key other than zookeeper, which is important for us to remove zookeeper dependency on our public facing APIs.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: