To start playing with Kafka Magic you’ll need a test instance of a Kafka cluster. You can quickly create a cluster in a Docker container, and use another container to run Kafka Magic app.
Here is the docker-compose.yml
file creating and networking two containers:
version: '2'
services:
kafka:
image: landoop/fast-data-dev
ports:
- "2181:2181"
- "3030:3030"
- "3031:3031"
- "9092:9092"
- "8081:8081"
- "8082:8082"
- "8083:8083"
environment:
ADV_HOST: kafka
magic:
image: digitsy/kafka-magic
ports:
- "8080:80"
environment:
KMAGIC_ALLOW_TOPIC_DELETE: "true"
KMAGIC_ALLOW_SCHEMA_DELETE: "true"
Just run docker-compose up
and in your browser navigate to http://localhost:8080 to see the Kafka Magic UI.
In the UI register your dev cluster using kafka
as the host:
kafka:9092
http://kafka:8081
That’s it. You are ready to try some scenarios, discover Kafka’s capabilities and limitations, prepare for serious work with Kafka Magic tool.