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

Support adding a new replication peer in disabled state

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None
    • Hide
      Add a boolean parameter which means the new replication peer's state is enabled or disabled for Admin/AsyncAdmin's addReplicationPeer method. Meanwhile, you can use shell cmd to add a enabled/disabled replication peer. The STATE parameter is optional and the default state is enabled.

      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"
      Show
      Add a boolean parameter which means the new replication peer's state is enabled or disabled for Admin/AsyncAdmin's addReplicationPeer method. Meanwhile, you can use shell cmd to add a enabled/disabled replication peer. The STATE parameter is optional and the default state is enabled. 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"

    Description

      Now when add a replication peer, the default state is enabled. If you want add a disabled replication peer, you need add a peer first, then disable it. It need two step to finish now.

      Use case for add a disabled replication peer. When user want sync data from a cluster A to a new peer cluster.
      1. Add a disabled replication peer. And config the table to peer config.
      2. Take a snapshot of table and export snapshot to peer cluster.
      3. Restore snapshot in peer cluster.
      4. Enable the peer and wait all stuck replication log replicated to peer cluster.

      Attachments

        1. HBASE-19293.master.003.patch
          33 kB
          Guanghao Zhang
        2. HBASE-19293.master.002.patch
          32 kB
          Guanghao Zhang
        3. HBASE-19293.master.001.patch
          26 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

              zghao Guanghao Zhang
              zghao Guanghao Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: