kafka
E:\kafka2.12\bin\windows
创建主题 Topic
kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic linlin
> bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
主题列表
kafka-topics.bat --list --zookeeper localhost:2181
创建生产者 Producter
kafka-console-producer.bat --broker-list localhost:9092 --topic linlin
创建消费者 consumer
kafka-console-consumer.bat --zookeeper localhost:1281 --topic linlin --from-beginning
kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic linlin --from-beginning
> bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
E:\zookeeper3.5.2\bin\zkServer
E:\kafka2.12\bin\windows
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
bin/kafka-topics.sh --list --zookeeper localhost:2181
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
zkServer
kafka-server-start.bat E:\\kafka2.12\\config\\server.properties
kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-topics.bat --list --zookeeper localhost:2181
kafka-console-producer.bat --broker-list localhost:9092 --topic test
kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning
E:\kafka2.12\bin\windows\kafka-server-start.bat E:\\kafka2.12\\config\\server.properties

浙公网安备 33010602011771号