Closed PauloFavero closed 2 years ago
Hi. Thx for reaching out. Since it's basically the same problem I replied in the mongodb community forums (https://www.mongodb.com/community/forums/t/mongodb-kafka-sink-connector-w-debezium-cdc-handler-fails-on-update-operations/201288/2) so that hopefully more people will read it and benefit from my answer. Also, please consider this community project as discontinued since the code has been integrated into the official mongodb sink connector a couple of years ago already. Therefore, please raise further issues in the mongodb issue tracker directly rather than here. I'm closing this for now since this issue will not be fixed in my community project anymore. Thx for your understanding.
HI,
I am trying to create a CDC pipeline with Debezium and kafka-mongo connect. This pipeline goal is to replicate data between 2 MongoDB databases(The real use case case is synchronization between multiple databases to a single one) .
My first try was using the official MongoDB Sink Connector but it fails for update operations as I explain in this topic topic at the MongoDB community.
Since I am having this issue, I moved on to give a try with the kafka-connect-mongodb but it is fails once it receives the first event.
The environment configuration and the error when using the kafka-connect-mongodb is slightly different than the one I showed at the MongoDB forum so, I am going to post my configuration below and the error at end:
Debezium Source Connector Config
Kafka MongoDB Sink Connect Config
Sink Connector Dockerfile
Docker Compose Configuration
The error that rises is the following:
Could this error be to a compatibility version mismatch between Debezium and kafka-mongodb-connect or with MongoDB 5.05?
Also, do you have any thoughts regarding when I use the official MongoDB sink connector with the Debezium CDC Handler as I posted on the MongoDB forum?
Thanks in advance Paulo