docker run -d \
--net=host \
--name=zookeeper \
-e ZOOKEEPER_CLIENT_PORT=32181 \
-e ZOOKEEPER_TICK_TIME=2000 \
-e ZOOKEEPER_SYNC_LIMIT=2 \
confluentinc/cp-zookeeper:7.3.1
docker run -d \
--net=host \
--name=kafka \
-e KAFKA_ZOOKEEPER_CONNECT=localhost:32181 \
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:29092 \
-e KAFKA_BROKER_ID=2 \
-e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \
confluentinc/cp-kafka:7.3.1
by default in spins up 3 brokers, spin up 1
This is a basic guide with the following programs
- topic.js - for setting up and configuting topic
- Producer.js- sending data to kafka broker
- consumer.js - consuming data from kafka broker
- This project has been licensed with an MIT license
- A Github star would be really great 😊
Hello, I am Sharath, a self-taught web developer and designer. I mostly work with front-end development using React, Angular .
If you would like to know when I release new resources , you can follow on LinkedIn, Twitter