欢迎来到飞鸟慕鱼博客,开始您的技术之旅!
当前位置: 首页知识笔记正文

kafka入门教程,kafka教程视频

墨初 知识笔记 68阅读

[root10 bin]#。 /Kafka-topics . sh-bootstrap-server localhost :9092-describe-topic topic-test 3。 Enter Kafka's box directory and subscribe to the theme test with the own Kafka- console-consumer.sh script. [root10 bin]#. /Kafka-console-consumer.sh-bootstrap-serverlocalhost :9092-Topic-Test At this time, the topic test has not stored any messages, so the script cannot consume any messages yet. 4. Open a new hush connection, enter Kafka's box directory, and use the own Kafka- console-producer. sh script to send a message to the theme test. [root10 bin]#. /Kafka-console-producer.sh-broker-listlocalhost :9092-Topic theme-Test and send "Hello, Kafka," and test the consumer connection window to consume the message. At this point, the simple Kafka actual combat case is over.

标签:
声明:无特别说明,转载请标明本文来源!