Open command promt by going to kafka directory Below step need to follow for repository: https://github.com/CodeMythGit/ApacheKafkaTutorial/tree/main/SpringBootApacheKafka
bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
bin\windows\kafka-server-start.bat .\config\server.properties
bin\windows\kafka-topics.bat --create --topic mytopicname --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1
bin\windows\kafka-topics.bat --list --bootstrap-server localhost:9092