To run this workshop you need several tools installed:
- The Docker Engine
- The Docker Compose
# start all services defined in the docker-compose.yaml
docker-compose -f docker-compose.yaml up
Linux / macOS (bash):
docker-compose -f docker-compose.yaml exec postgres env PGOPTIONS="--search_path=campaigns" bash -c 'psql -U $POSTGRES_USER postgres'
Linux / macOS (bash):
docker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-console-consumer.sh \
--bootstrap-server kafka:9092 \
--from-beginning \
--property print.key=true \
--topic dbserver1.campaigns.customers
Windows (PowerShell):
docker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-console-consumer.sh `
--bootstrap-server kafka:9092 `
--from-beginning `
--property print.key=true `
--topic dbserver1.campaigns.customers
docker-compose -f docker-compose.yaml exec kafka /kafka/bin/kafka-topics.sh --bootstrap-server=kafka:9092 --list
Linux / macOS (bash):
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @connector-config.json
Windows (PowerShell):
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @connector-config.json
Linux / macOS (bash):
curl -i -X GET -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/
Windows (PowerShell):
curl -i -X GET -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/
- DB diagram
- Add connector curl command + Powershell?
For the workshop we used the config files and images from the Debezium Team Repositories. Cheers!