Prepare to create Hive ACID table replication policies
Before you create a Hive ACID table replication policy, you must prepare the clusters for replication.
- Set up a two-way trust between the CDP Private Cloud Base clusters. For more information, see Configure two-way trust between clusters
- 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.
-
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. -
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.
- Enable the Hive ACID table replication feature flag CMF_FF_DR_HIVE_ON_TEZ_REPLICATION on the source and target cluster. For more information, see Enabling Hive ACID table replication feature flag.