1.3 KiB
This doc describes how to set up CDC pipeline
Pipeline
Setup local pipeline
docker-compose
Full pipeline can be launched via docker-compose with the help of docker-compose.yaml It will start:
- MySQL
- Zookeeper
- Debezium MySQL connector
- RedPanda
- clickhouse-kafka-sink-connector
- Clickhouse
In order to launch clickhouse-kafka-sink-connector
appropariate docker image is required,
which can be built as described in Image
cd deploy/docker
docker-compose up
Image
Docker image can be created with provided Dockerfile and build script
ToDO: Create Kafka connector image with Mysql Create JAR file by running the following command and copy to the /libs directory of Kafka.
mvn install
Copy MYSQL libs from container/libs to the kafka libs directory.
Start the Kafka connect process and pass the properties file for both MYSQL and Clickhouse properties.
./connect-standalone.sh ../config/connect-standalone.properties ../../kafka-connect-clickhouse/kcch-connector/src/main/config/mysql-debezium.properties ../../kafka-connect-clickhouse/kcch-connector/src/main/config/clickhouse-sink.properties