[Kafka] Windows environment configuration test

A configuration

1, Java configuration: JAVA_HOME path without spaces

2, download /kafka_2.11-1.1.0, address https://www.apache.org/dyn/closer.cgi?path=/kafka/1.1.0/kafka_2.11-1.1.0.tgz, and unzip to C: \ 1000_Study \ 3000_Java \ kafka_2.11-1.1.0

3, the path environment configuration kafka

Second, the command-line test

cd C:\1000_Study\3000_Java\kafka_2.11-1.1.0


bin\windows\zookeeper-server-start.bat config\zookeeper.properties


bin\windows\kafka-server-start.bat config\server.properties


bin\windows\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test


bin\windows\kafka-topics.bat --list --zookeeper localhost:2181


bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic demo


bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic demo --from-beginning

Third, the development environment

 

Guess you like

Origin www.cnblogs.com/defineconst/p/11615282.html