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

Add EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS support to replication peer config

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      Add two new field: EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS to replication peer config.

      If replicate_all flag is true, it means all user tables will be replicated to peer cluster. Then allow config exclude namespaces or exclude table-cfs which can't be replicated to peer cluster.

      If replicate_all flag is false, it means all user tables can't be replicated to peer cluster. Then allow to config namespaces or table-cfs which will be replicated to peer cluster.
      Show
      Add two new field: EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS to replication peer config. If replicate_all flag is true, it means all user tables will be replicated to peer cluster. Then allow config exclude namespaces or exclude table-cfs which can't be replicated to peer cluster. If replicate_all flag is false, it means all user tables can't be replicated to peer cluster. Then allow to config namespaces or table-cfs which will be replicated to peer cluster.

    Description

      This is a follow-up issue after HBASE-16868. Copied the comments in HBASE-16868.

      This replicate_all flag is useful to avoid misuse of replication peer config. And on our cluster we have more config: EXCLUDE_NAMESPACE and EXCLUDE_TABLECFS for replication peer. Let me tell more about our use case. We have two online serve cluster and one offline cluster for MR/Spark job. For online cluster, all tables will replicate to each other. And not all tables will replicate to offline cluster, because not all tables need OLAP job. We have hundreds of tables and if only one table don't need replicate to offline cluster, then you will config a lot of tables in replication peer config. So we add a new config option is EXCLUDE_TABLECFS. Then you only need config one table (which don't need replicate) in EXCLUDE_TABLECFS.

      Then when the replicate_all flag is false, you can config NAMESPACE or TABLECFS means which namespace/tables need replicate to peer cluster. When replicate_all flag is true, you can config EXCLUDE_NAMESPACE or EXCLUDE_TABLECFS means which namespace/tables can't replicate to peer cluster.

      Attachments

        1. HBASE-19492.master.addendum.patch
          2 kB
          Guanghao Zhang
        2. HBASE-19492.master.005.patch
          56 kB
          Guanghao Zhang
        3. HBASE-19492.master.004.patch
          56 kB
          Guanghao Zhang
        4. HBASE-19492.master.003.patch
          56 kB
          Guanghao Zhang
        5. HBASE-19492.master.002.patch
          56 kB
          Guanghao Zhang
        6. HBASE-19492.master.002.patch
          56 kB
          Guanghao Zhang
        7. HBASE-19492.master.002.patch
          56 kB
          Guanghao Zhang
        8. HBASE-19492.master.001.patch
          52 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: