Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12706

Support multiple port numbers in ZK quorum string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0, 2.0.0
    • 1.1.0, 2.0.0
    • None
    • None
    • Reviewed
    • Hide
      hbase.zookeeper.quorum configuration now allows servers together with client ports consistent with the way Zookeeper java client accepts the quorum string. In this case, using hbase.zookeeper.clientPort is not needed. eg. hbase.zookeeper.quorum=myserver1:2181,myserver2:20000,myserver3:31111
      Show
      hbase.zookeeper.quorum configuration now allows servers together with client ports consistent with the way Zookeeper java client accepts the quorum string. In this case, using hbase.zookeeper.clientPort is not needed. eg. hbase.zookeeper.quorum=myserver1:2181,myserver2:20000,myserver3:31111

    Description

      HBase does not allow the zk quorum string to contain port numbers in this format:

      hostname1:port1,hostname2:port2,hostname3:port3
      

      Instead it expects the string to be in this format:

      hostname1,hostname2,hostname3:port3
      

      And port 3 is used for all the client ports. We should flex the parsing so that both forms are accepted.

      A sample exception:

      java.io.IOException: Cluster key passed host1:2181,host2:2181,host3:2181,host4:2181,host5:2181:2181:/hbase is invalid, the format should be:hbase.zookeeper.quorum:hbase.zookeeper.client.port:zookeeper.znode.parent
      	at org.apache.hadoop.hbase.zookeeper.ZKUtil.transformClusterKey(ZKUtil.java:403)
      	at org.apache.hadoop.hbase.zookeeper.ZKUtil.applyClusterKeyToConf(ZKUtil.java:386)
      	at org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl.getPeerConf(ReplicationPeersZKImpl.java:304)
      	at org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl.createPeer(ReplicationPeersZKImpl.java:435)
      

      Attachments

        1. HBASE-12706.v3-branch-1.patch
          42 kB
          Stephen Yuan Jiang
        2. HBASE-12706.v3-master.patch
          42 kB
          Stephen Yuan Jiang
        3. HBASE-12706.v2-branch-1.patch
          39 kB
          Stephen Yuan Jiang
        4. HBASE-12706.v2-master.patch
          39 kB
          Stephen Yuan Jiang
        5. hbase-12706-alternate.patch
          38 kB
          Enis Soztutar
        6. HBASE-12706.v1-branch-1.patch
          35 kB
          Stephen Yuan Jiang

        Issue Links

          Activity

            People

              syuanjiang Stephen Yuan Jiang
              syuanjiang Stephen Yuan Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: