Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 557 Bytes

File metadata and controls

28 lines (22 loc) · 557 Bytes

Instructions to test the kafka producer and consumer

  • run the docker container using the commmand :
 docker compose -f <.yml filename> up -d
  • To get into kafka
docker exec -it kafka /bin/sh 
# ls
# cd opt
# ls
# cd kafka_2.13-2.8.1
#ls
#cd bin
#ls
  • To create a kafka topic
#kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic <topicname>