Enabling Hive ACID table replication feature flag

To create Hive ACID table replication policies, you must enable the Hive ACID table replication feature flag on the source cluster and target cluster.

To enable the feature flag, perform the following steps:

  1. Invoke the /api/v42/cm/license API on the target cluster to verify whether the DR_HIVE_ON_TEZ_REPLICATION feature flag is set to false.
    The following example shows a sample result when you invoke the /api/v42/cm/ license on the target cluster:
    {
      "features": [
        {
          "name": "DR_HIVE_ON_TEZ_REPLICATION",
          "description": "Hive ACID table replication",
          "enabled": false
        }
      ]
    }
    
  2. SSH to the target cluster.
  3. Edit the /etc/default/cloudera-scm-server startup script and set the CMF_FF_DR_HIVE_ON_TEZ_REPLICATION feature flag to true.
    The following sample snippet shows the commands to run to set the DR_HIVE_ON_TEZ_REPLICATION feature flag to true:
    $ ssh root@user456-1.user456.root.hwx.site
    root@user456-1.user456.root.hwx.site's password: 
    Last login: Fri Sep  4 08:26:47 2020
    $ vim /etc/default/cloudera-scm-server
    …
    export CMF_FF_DR_HIVE_ON_TEZ_REPLICATION=true
    :wq
    $ service cloudera-scm-server restart
    Redirecting to /bin/systemctl restart cloudera-scm-server.service
    $ tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log
    …
    2020-09-19 10:48:40,533 INFO WebServerImpl:org.eclipse.jetty.server.Server: Started @61506ms
    2020-09-19 10:48:40,533 INFO WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Started Jetty server.
    
  4. Restart the Cloudera Manager server.
  5. Invoke the /api/v42/cm/license API on the target cluster to verify whether the feature flag DR_HIVE_ON_TEZ_REPLICATION is true.
    The following example shows a sample result when you invoke the /api/v42/cm/ license on the target cluster:
    {
      "features": [
        {
          "name": "DR_HIVE_ON_TEZ_REPLICATION",
          "description": "Hive ACID table replication",
          "enabled": true
        }
      ]
    }