美文网首页
Kafka 学习

Kafka 学习

作者: 活力的夏天 | 来源:发表于2017-09-26 23:03 被阅读0次

kafka官网:http://kafka.apache.org/0102/documentation.html#quickstart
kafka安装和启动:http://orchome.com/6

常用命令:

Test kafka cluster:
    bin/kafka-create-topic.sh --zookeeper localhost:2181 --replica 3 --partition 1 --topic topic-name
    bin/kafka-list-topic.sh --zookeeper localhost:2181 --topic topic-name
    bin/kafka-console-producer.sh --broker-list localhost:9092 --topic topic-name
    input some messages
    bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic topic-name

相关文章

网友评论

      本文标题:Kafka 学习

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