Giter Site home page Giter Site logo

Comments (3)

moaazabir avatar moaazabir commented on June 11, 2024 1

Hello @hpgrahsl,

Thanks for the information . It really helped me to understand the CDC connectors better. Also I got really good information from your older comments on other issues.

from kafka-connect-mongodb.

hpgrahsl avatar hpgrahsl commented on June 11, 2024

Hi @moaazabir,

thanks for reaching out and the interest to use the mongodb sink connector. From what I can see in your configuration you are running the connector in CDC mode "mongodb.change.data.capture.handler": "at.grahsl.kafka.connect.mongodb.cdc.debezium.rdbms.RdbmsHandler". With this configuration option, it's not supported to define and apply a post processor chain because CDC events are intended to be processed in a 1:1 fashion because this is the most common form of dealing with CDC payloads in the wild.

That said, if you really want to remove field from the CDC payload you would need to configure SMTs (single message transforms) which are allowing to pre-process the records before they are handed to the sink connector itself. There are several turnkey ready SMTs you can choose from and the one you might want to apply is the following https://docs.confluent.io/platform/current/connect/transforms/replacefield.html#replacefield

Hope this helps you achieve your requirements.

Finally please note that this project has been discontinued 3 years ago because it was integrated into the official mongodb connector for apache kafka. This means if you have questions or want to report issues please do that in the official repository right here https://github.com/mongodb/mongo-kafka Thx for your consideration and all the best with for your use case / project.

from kafka-connect-mongodb.

hpgrahsl avatar hpgrahsl commented on June 11, 2024

You're welcome! Then I think it's fine if I'll close this for now but feel free to ask further questions in the official repo https://github.com/mongodb/mongo-kafka any time.

from kafka-connect-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.