Managing Hive replication policies using CDP CLI

You can use CDP CLI to suspend a running policy job and then activate it. You can also delete a replication policy using CDP CLI.

  • To suspend a running policy job, run the following command:
    cdp --profile [***profile_name***] replicationmanager suspend-policy --cluster-crn [***cluster_crn***] --policy-name [***policy_name***]
  • To activate a suspended policy job, run the following command:
    cdp --profile [***profile_name***] replicationmanager activate-policy --cluster-crn [***cluster_crn***] --policy-name [***policy_name***]
  • To delete a replication policy, run the following command:
    cdp --profile [***profile_name***] replicationmanager delete-policy --cluster-crn [***target_cluster_crn***] --policy-name [***policy_name***]