You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2019/01/24 16:37:00 UTC

[jira] [Created] (HBASE-21771) Cluster key in Master UI is incorrect

Sean Busbey created HBASE-21771:
-----------------------------------

             Summary: Cluster key in Master UI is incorrect
                 Key: HBASE-21771
                 URL: https://issues.apache.org/jira/browse/HBASE-21771
             Project: HBase
          Issue Type: Bug
          Components: Replication, UI, Usability
    Affects Versions: 2.0.0, 2.1.0
            Reporter: Sean Busbey
             Fix For: 2.1.3


The master UI is supposed to give us a cluster key we can copy/paste to add a replication peer in the hbase shell. the shell explains that it should look like this:

{quote}
{code}
For a HBase cluster peer, a cluster key must be provided and is composed like this:
hbase.zookeeper.quorum:hbase.zookeeper.property.clientPort:zookeeper.znode.parent
This gives a full path for HBase to connect to another HBase cluster.

...

  hbase> add_peer '1', CLUSTER_KEY => "server1.cie.com:2181:/hbase"
  hbase> add_peer '1', CLUSTER_KEY => "server1.cie.com:2181:/hbase", STATE => "ENABLED"
  hbase> add_peer '1', CLUSTER_KEY => "server1.cie.com:2181:/hbase", STATE => "DISABLED"
  hbase> add_peer '2', CLUSTER_KEY => "zk1,zk2,zk3:2182:/hbase-prod",
    TABLE_CFS => { "table1" => [], "table2" => ["cf1"], "table3" => ["cf1", "cf2"] }
  hbase> add_peer '2', CLUSTER_KEY => "zk1,zk2,zk3:2182:/hbase-prod",
    NAMESPACES => ["ns1", "ns2", "ns3"]
{code}
{quote}

However, on my example cluster with ZK quorum with 3 servers, the master ui gives this:

{quote}
{code}

Cluster Key	busbey-training-1.gce.cloudera.com:2181
busbey-training-2.gce.cloudera.com:2181
busbey-training-3.gce.cloudera.com:2181:/hbase	Key to add this cluster as a peer for replication. Use 'help "add_peer"' in the shell for details.
{code}
{quote}

Note that the quorum members are newline separated instead of comma and that the port appears on each member instead of after the set of host names.

Workaround is to manually construct the cluster key from the details in the field. :(



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)