Migrate Kafka Using the IdentityReplicationPolicy
How to migrate Kafka with Streams Replication Manager (SRM) using the IdentityReplicationPolicy.
- Ensure that you have reviewed Migrate Kafka Using Streams Replication Manager and understand the limitations and use cases for this policy.
- Setup and configure Streams Replication Manager in the CDP Private Cloud Base cluster. For more information, see Add and Configure SRM. Setup instructions might differ in different versions. Ensure that you view the version of the documentation that matches your Runtime version.
- Ensure that SRM is set up to use the
IdentityReplicationPolicy. This is done differently
depending on the Cloudera Runtime version.
- 7.1.8: In Cloudera Manager, add the
following entry to the Streams Replication Manager's
Replication Configs
property.
replication.policy.class=org.apache.kafka.connect.mirror.IdentityReplicationPolicy
- 7.1.9 or higher: In Cloudera Manager, select the Enable Prefixless Replication property. This property configures SRM to use the IdentityReplicationPolicy.
- 7.1.8: In Cloudera Manager, add the
following entry to the Streams Replication Manager's
Replication Configs
property.
- If you are on Cloudera Runtime 7.1.8, monitoring features provided by the SRM Service are not supported when this policy is in use. This means that you cannot use the SMM UI or SRM Service REST API to validate that data is being migrated.