Prepare to create Hive ACID table replication policies

Before you create a Hive ACID table replication policy, you must prepare the clusters for replication.

To perform Hive ACID table replication using Replication Manager, Cloudera Manager Server must manage the target cluster. You can use the same server or a peer Cloudera Manager Server to manage the source cluster. Hive ACID table replication policies use Hive scheduler to schedule the frequency of replication policy job runs.

  1. Set up a two-way trust between the CDP Private Cloud Base clusters. For more information, see Configure two-way trust between clusters
  2. Configure a peer relationship only if the source cluster is managed by a different Cloudera Manager server than the target cluster. For more information, see Configuring a peer relationship.
  3. Configure the hive.repl.cm.enabled=true key-value pair on the source cluster for the following services to turn on the ChangeManager:
    Service Action
    Hive-on-Tez

    For example, Hive-on-Tez-1

    On the Configuration tab, search for Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml property and set the key-value pair
    Hive

    For example, Hive-1

    On the Configuration tab, search for Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml property and set the key-value pair.
    Hive

    For example, Hive-1

    On the Configuration tab, search for Enable ChangeManager for Hive replication parameter and select it.
  4. Configure Hive configuration parameters for Hive ACID tables. For more information, see Mandatory Hive configuration parameters for Hive ACID table replication policies.
    Optionally, to optimize the replication policy performance, you can configure the parameters in Recommended Hive configuration parameters for Hive ACID table replication policies and Parameters to optimize Hive ACID table replication performance as necessary.
  5. Enable the Hive ACID table replication feature flag on the source and target cluster.
    For more information, contact your Cloudera account team.