Run Zookeeper:
bin\windows\zookeeper-server-start.bat config\zookeeper.properties
Log: INFO clientPortAddress is 0.0.0.0:2181
(org.apache.zookeeper.server.quorum.QuorumPeerConfig)
Run Kafka:
bin\windows\kafka-server-start.bat config\server.properties
Log: INFO Awaiting socket connections on 0.0.0.0:9092.
(kafka.network.DataPlaneAcceptor)
Create topic:
bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --create --topic
java-test-topic --partitions 3 --replication-factor 1
Get list of topics:
bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --list
Detail/Describe topic:
bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --describe --topic
java-test-topic
Start consumer:
bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic
java-test-topic --from-beginning
Start producer:
bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic java-
test-topic
Sent csc file: bin\windows\kafka-console-producer.bat --broker-list localhost:9092
--topic java-test-topic <C:\Users\sawka\Downloads\student-dataset.csv