Confirm the connect.name forces the replicated namespace in the destination schema.
./start-cluster.sh
Then add source and sink connector
Create source connector on source cluster.
cd mongodb
curl -X POST -H "Content-Type: application/json" -d @cdc-source.json http://localhost:9083/connectors
Create sink connector on target cluster.
cd mongodb
curl -X POST -H "Content-Type: application/json" -d @cdc-sink.json http://localhost:8083/connectors
Confirm the MongoDB connectors are running.
Create, update and delete documents on source collection and it will be replicated on target collection.
- Stop the consumer (control C)
- Clean the docker cluster
docker-compose down -v