Skip to content

joaopaulopmedeiros/kafka-infraascode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Kafka Cluster

Provisioning infrastructure

docker-compose up

Listing containers

docker-compose ps

Accessing container bash terminal

docker exec -it cluster-kafka-1-1 bash

Creating a topic

kafka-topics --create --bootstrap-server localhost:29092 --replication-factor 3 --parti
tions 3 --topic meu-topico

Listing topics

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

Describing a topic

kafka-topics --describe --bootstrap-server localhost:29092 --topic meu-topico

Producing messages

kafka-console-producer --broker-list localhost:29092 --topic meu-topico

Consuming messages

kafka-console-consumer --bootstrap-server localhost:29092 --topic meu-topico --group a

Describing groups

kafka-consumer-groups --group a --bootstrap-server localhost:29092 --describe

About

Kafka infrastructure on localhost made easy

Topics

Resources

Stars

Watchers

Forks