kafka-connect-mirror is a Kafka Connector for mirroring data between Kafka clusters.
kafka-connect-mirror is a Kafka Connector
for mirroring data between Kafka clusters.
mvn clean package
./bin/connect-standalone.sh config/connect-standalone.properties mirror-connector.properties
./bin/connect-standalone.sh config/connect-distributed.properties
curl -X POST -H "Content-Type: application/json" -d @mirror-connector.json http://localhost:8083/connectors
topic.whitelist
Whitelist of topics to be mirrored.
topic.blacklist
Topics to exclude from mirroring.
topic.regex
Regex of topics to mirror.
topic.poll.interval.ms
Frequency in ms to poll for new or removed topics, which may result in updated task configurations to start polling for data in added topics/partitions or stop polling for data in removed topics.
topic.rename.format
A format string to rename the topics in the destination cluster. the format string should contain ‘${topic}’ that we bill replaced with the source topic name For example, with’${topic}_mirror’ format the topic ‘test’ will be renamed at the destination cluster to ‘test_mirror’.
topic.preserve.partitions
Ensure that messages mirrored from the source cluster use the same partition in the destination cluster. [if source topic have more partitions than destination topic, some partitions will be not mirrored.]