This project demonstrates the integration between ClickHouse and Kafka. It allows you to create a Kafka topic, produce messages to it, and consume them with ClickHouse.
Docker
Clone the repository Run the following command to start the project:
make create
To create the necessary tables in ClickHouse, run:
make clickhouse-create-tables
To count the number of messages stored in ClickHouse, run:
make clickhouse-messages-count
To view the log errors in ClickHouse, run:
make clickhouse-log-errors
To create a Kafka topic, run:
make topic-create
To check the details of the created topic, run:
make topic-check
To produce messages to the topic, run:
make topic-produce-messages
producing messages with orginux/kafka-traffic-generator, you can set the messages number or data types in ./configs/ktg/config.yaml
.
To check the lag of the consumer group, run:
make topic-lag
Connect to ClickHouse to select data the data
make clickhouse-client
To stop and remove all the containers, run:
make down