Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] CDC: Add example for message structure when transformers are used. #25469

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

vaibhav-yb
Copy link
Contributor

This PR adds example message structures after using the transformers bundled with the connectors.

@vaibhav-yb vaibhav-yb added area/documentation Documentation needed area/cdc Change Data Capture area/cdcsdk CDC SDK labels Jan 2, 2025
@vaibhav-yb vaibhav-yb self-assigned this Jan 2, 2025
Copy link

netlify bot commented Jan 2, 2025

Deploy Preview for infallible-bardeen-164bc9 ready!

Name Link
🔨 Latest commit a25f616
🔍 Latest deploy log https://app.netlify.com/sites/infallible-bardeen-164bc9/deploys/67a19bb567b2c60008ef09cd
😎 Deploy Preview https://deploy-preview-25469--infallible-bardeen-164bc9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sudhanshu456
Copy link
Contributor

@vaibhav-yb Are the changes you made also applicable to other versions like 2.23, 2024.1, 2024.2, and so on? If yes, could you please make those backports of the respective version directories


```sh
docker run -it --rm --name consumer --link zookeeper:zookeeper --link kafka:kafka debezium/kafka:2.5.2.Final watch-topic -a dbserver1.public.products
```

The `watch-topic` utility returns the event records from the `products` table. There will be 200 events, one for each row in the table which was snapshotted. Each event is formatted in JSON, because that is how you configured the Kafka Connect service. There are two JSON documents for each event: one for the key, and one for the value.
The watch-topic utility returns the event records from the `products` table. There will be 200 events, one for each row in the table which was snapshotted. Each event is formatted in JSON, because that is how you configured the Kafka Connect service. There are two JSON documents for each event: one for the key, and one for the value.

You should see output similar to the following:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output is all on one line, which doesn't look great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cdc Change Data Capture area/cdcsdk CDC SDK area/documentation Documentation needed
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

3 participants