Skip to content

brianwu291/debezium-trial

Repository files navigation

Debezium Trial

Start the topology as defined in tutorial

export DEBEZIUM_VERSION=2.7
docker compose -f docker-compose-postgres.yaml up

Start Postgres connector

curl -i -X POST -H "Accept:application/json" -H  "Content-Type:application/json" http://localhost:8083/connectors/ -d @register-postgres.json

Consume messages from the Debezium topic

docker compose -f docker-compose-postgres.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \
    --bootstrap-server kafka:9092 \
    --from-beginning \
    --property print.key=true \
    --topic dbserver1.inventory.customers

Modify records in the database via Postgres client

docker compose -f docker-compose-postgres.yaml exec postgres env PGOPTIONS="--search_path=inventory" bash -c 'psql -U $POSTGRES_USER postgres'

Shut down the cluster

docker compose -f docker-compose-postgres.yaml down

Or, just using the docker-compose-postgres.yaml file to compose up

Can refs the compose-starter.sh file to get related commands

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published