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. Verify whether the CMF_FF_DR_HIVE_ON_TEZ_REPLICATION feature flag is available. To accomplish this task, invoke the /api/v42/cm/license API on the target cluster.
    The following example shows a sample result when you invoke the /api/v42/cm/ license on the target cluster:
    {
      "features": [
        {
          "name": "CMF_FF_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.
  4. Restart the Cloudera Manager server.
    The following sample snippet shows the commands to run to set the CMF_FF_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.
    
  5. Verify whether the feature flag CMF_FF_DR_HIVE_ON_TEZ_REPLICATION is set to true. To accomplish this task, invoke the /api/v42/cm/license API on the target cluster.
    The following example shows a sample result when you invoke the /api/v42/cm/ license on the target cluster:
    {
      "features": [
        {
          "name": "CMF_FF_DR_HIVE_ON_TEZ_REPLICATION",
          "description": "Hive ACID table replication",
          "enabled": true
        }
      ]
    }
    
    To verify whether the Hive ACID table replication policy is available, go to the Cloudera Manager > Replication > Replication Policies page. On this page, click Create Replication Policy. The Hive ACID Table Replication Policy option must appear.