美文网首页我爱编程
kafka basic commands

kafka basic commands

作者: siyongshuai | 来源:发表于2018-03-29 10:00 被阅读0次

kafka-quickstart

create topic 

kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

publish message to topic 

kafka-console-producer.sh --broker-list localhost:9092 --topic test

subscribe topic 

kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

相关文章

网友评论

    本文标题:kafka basic commands

    本文链接:https://www.haomeiwen.com/subject/hjgzzxtx.html