Skip to content

sauljabin/kafka-dockercompose-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Docker Compose Sandbox

Get Started

Run the cluster:

docker compose up -d

Stop the container and remove volume:

docker compose down -v

Kafka commands

Create a topic:

kafka-topics --create --bootstrap-server localhost:19093 \
    --replication-factor 3 \
    --partitions 3 \
    --topic test

Delete a topic:

kafka-topics --delete --bootstrap-server localhost:19093 \
    --topic test

List topics:

kafka-topics --bootstrap-server localhost:19093 --list

List Groups:

kafka-consumer-groups --bootstrap-server localhost:19093 --list

Delete group:

kafka-consumer-groups --bootstrap-server localhost:19093 --delete --group test

About

Docker compose kafka example

Topics

Resources

Stars

Watchers

Forks