Kafka

1 设置KAFKA_HOME

2设置PATH

C:\kafka_2.12-2.3.0\bin\windows>zookeeper-server-start.bat ../../config/zookeeper.properties

C:\kafka_2.12-2.3.0\bin\windows>kafka-server-start.bat ../../config/server.properties

C:\kafka_2.12-2.3.0\bin\windows>kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic cc --from-beginning

C:\kafka_2.12-2.3.0\bin\windows>kafka-console-producer.bat --broker-list localhost:9092 --topic cc

 

Leave a Reply

Your email address will not be published. Required fields are marked *