Steps:
- Import Postman collection from here
./postman-collection
- Within kafka-connect-demo repo,
docker-compose up -d
- Check if the kafka connect workers are up and running by hitting the
get connectors
request in the postman collection. Success response will be 200 and[]
-empty array - Post that run
make create_connectors
- Repeat Step 3 - this time you should see 3 entries ; 1 mysql-cdc and 2 es-sink connectors. Now the connectors are created
- Check if any of the connectors have errors in them - with
Connector Status
request in the postman collection; check for all 3 connectors. If no errors - we are good to go - Run
make insert_dummy_data
- Run
make verify_es_data
- you should be able to see the dummy mysql data in Elastic search
Viola the CDC pipeline is ready !
Links:
- The mysql cdc is done with debezium connector; You can read more here