kafka相关配置

xiaoxiao2021-02-28  51

kafka相关的应用环境配置:https://blog.csdn.net/chs007chs/article/details/77836972

kafka-manager安装配置:https://blog.csdn.net/lsshlsw/article/details/47300145

相关文献:

https://blog.csdn.net/isea533/article/details/73727485

https://github.com/yahoo/kafka-manager

https://www.cnblogs.com/qingyuuu/p/5844790.html

启动kafka服务器

> bin/kafka-server-start.sh config/server.properties

Step 2: 创建 一个 topic

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

查看topic

> bin/kafka-topics.sh --list --zookeeper localhost:2181

Step 3: Send some messages

> bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test This is a message This is another message

Step 4: 启动一个客户端(消费者)

> bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning
转载请注明原文地址: https://www.6miu.com/read-2612931.html

最新回复(0)