Skip to content

Creating consumer and producer with kafka and zookeeper

Notifications You must be signed in to change notification settings

Nirbhay007/Kafka-Usecase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka-Usecase

Creating consumer and producer with kafka and zookeeper

Prerequisites

Commands

  • Start Zookeper Container and expose PORT 2181.
docker run -p 2181:2181 zookeeper
  • Start Kafka Container, expose PORT 9092 and setup ENV variables.
docker run -p 9092:9092 \
-e KAFKA_ZOOKEEPER_CONNECT=<PRIVATE_IP>:2181 \
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://<PRIVATE_IP>:9092 \
-e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \
confluentinc/cp-kafka

About

Creating consumer and producer with kafka and zookeeper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published