Enabling prefixless replication
Learn how to enable prefixless replication with the IdentityReplicationPolicy. If this replication policy is in use, remote topics on target clusters retain their original name and are not prefixed.
useast.topic1
. If you do not want your topics to get
renamed, you can choose to use IdentityReplicationPolicy instead,
which does not rename topics during replication. This type of replication is referred to
as prefixless replication. You can configure SRM to use the IdentityReplicationPolicy by selecting the Enable Prefixless Replication SRM service property in Cloudera Manager.
- Ensure that the Remote Topics Discovery With Internal Topic property remains selected after you enable prefixless replication. This property must be selected for prefixless replication to function. This property is selected by default and is also automatically selected when you enable prefixless replication with Enable Prefixless Replication.
- Do not use
replication.policy.class
to set IdentityReplicationPolicy as the replication policy. Use Enable Prefixless Replication instead. - Using a mix of replications policies in a deployment with multiple instances of the SRM service is not supported.
- Transitioning an already running SRM service from the DefaultReplicationPolicy or any other replication policy to the IdentityReplicationPolicy is not recommended.
- The IdentityReplicationPolicy has the following
limitations:
- Replication loop detection is not supported. As a result, you must ensure that topics are not replicated in a loop between your source and target clusters.
- The
/v2/topic-metrics/{target}/{downstreamTopic}/{metric}
endpoint of SRM Service v2 API does not work properly with prefixless replication. Use the/v2/topic-metrics/{source}/{target}/{upstreamTopic}/{metric}
endpoint instead. - The replication metric graphs shown on the Topic Details page of the SMM UI do not work with prefixless replication.
- In Cloudera Manager, select the SRM service.
- Go to Configuration.
- Find and select the Enable Prefixless Replication property.
- Click Save Changes.
- Restart the service.