This project sets up a Kafka stack using Docker Compose, including Kafka and Conduktor for easy management and visualization.
- Docker installed and running on your machine
- Git installed
git clone https://github.com/conduktor/kafka-stack-docker-compose.git
cd kafka-stack-docker-compose
docker compose -f conduktor-kafka-single.yml up- Kafka will be available at
$DOCKER_HOST_IP:9092 - Conduktor will be available at
$DOCKER_HOST_IP:8080
This project also includes a Kafka producer that streams live changes from Wikimedia into Kafka.
- Navigate to the project directory
cd conductor-platform- Start required services (if not already running)
docker compose -f your-file.yml up -d- Run the Wikimedia Producer
Once everything is up and running, start your WikiMediaChangesProducer application from your IDE or terminal.
- Connects to the Wikimedia live stream
- Processes real-time change events
- Publishes them into a Kafka topic
- Open Conduktor at
http://localhost:8080 - Check your Kafka topics
- You should see live messages flowing in 🎉
This module includes a Kafka consumer that streams live data from a Kafka topic into OpenSearch.
- Navigate to the project directory
cd conductor-platformcd kafka-consumer-opensearch- Start required services (if not already running)
docker compose -f your-file.yml up -d- Run the OpenSearch Consumer
Once everything is up and running, start your OpenSearchConsumer application from your IDE or terminal.
- Consumes messages from the configured Kafka topic
- Indexes the data into OpenSearch
- Processes real-time change events
-
Check the logs of the Kafka consumer and locate an
IndexResponseID
Example:y6gYNp0Ba2tgHH6QrCPb -
Open OpenSearch Dashboard:
http://localhost:5601 -
Navigate to Dev Tools and run:
GET /wikimedia/_doc/y6gYNp0Ba2tgHH6QrCPb
-
Verify that the document is successfully indexed.