michael-robbins / playground-kafka

Playground for Kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kafka-playground

Playground for Kafka

Running Kafka

This assumes docker & docker-compose are already installed

docker-compose up

Build the scripts runner image

docker build --pull -t kafka-scripts:latest .

Run the various scripts

Assumes you're running the cluster with the above command

# Run the container linked into the cluster
docker run -it --network kafka-playground_cluster --rm -v $(pwd):/scripts -w '/scripts' kafka-scripts:latest /bin/bash

# Create the default topics
./create_topics.py

# Start an infinite loop generating orders
./generate_orders.py

About

Playground for Kafka


Languages

Language:Python 96.4%Language:Dockerfile 3.6%