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

Add support of adding base peer configs via hbase-site.xml for all replication peers.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.7.0, 2.4.0
    • 3.0.0-alpha-1, 1.7.0, 2.4.0
    • Replication
    • None
    • Reviewed
    • Hide
      <!-- markdown -->

      Adds a new configuration parameter "hbase.replication.peer.base.config" which accepts a semi-colon separated key=CSV pairs (example: k1=v1;k2=v2_1,v3...). When this configuration is set on the server side, these kv pairs are added to every peer configuration if not already set. Peer specific configuration overrides have precedence over the above default configuration. This is useful in cases when some configuration has to be set for all the peers by default and one does not want to add to every peer definition.
      Show
      <!-- markdown --> Adds a new configuration parameter "hbase.replication.peer.base.config" which accepts a semi-colon separated key=CSV pairs (example: k1=v1;k2=v2_1,v3...). When this configuration is set on the server side, these kv pairs are added to every peer configuration if not already set. Peer specific configuration overrides have precedence over the above default configuration. This is useful in cases when some configuration has to be set for all the peers by default and one does not want to add to every peer definition.

    Description

      Today, if a user needs to apply some common base peer configs to all the replication peers on a given cluster, the only way is to execute update_peer_config via CLI which requires manual intervention and can be tedious in case of large deployment fleet.

      As part of this JIRA, we plan to add the support to have base replication peer configs as part of hbase-site.xml like hbase.replication.peer.base.config="k1=v1;k2=v2.." which can be easily updated and applied as part of a rolling restart. Example below:
      <property>
      <name>hbase.replication.peer.base.configs</name>
      <value>hbase.replication.source.custom.walentryfilters=x,y,z;hbase.rpc.protection=abc;hbase.xxx.custom_property=123</value>
      </property>

      This will be empty by default, but one can override to have base configs in place.

      The final peer configuration would be a merge of this newly added base config + whatever users override during the peer creation/update (if any).

      Related Jira: https://issues.apache.org/jira/browse/HBASE-17543.  HBASE-17543 added the support to add the WALEntryFilters to default endpoint via peer configuration. By this new Jira we are extending the support to update peer configs via hbase-site.xml.

      Attachments

        1. HBASE-24764-master.patch
          11 kB
          Ankit Jain

        Issue Links

          Activity

            People

              jainankit Ankit Jain
              jainankit Ankit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: