In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to install kafka in mac, for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Installation of kafka
Brew install kafka installation depends on zookeeper. Note: installation directory: / usr/local/Cellar/kafka/0.10.2.0
Installed profile location
/ usr/local/etc/kafka/server.properties/usr/local/etc/kafka/zookeeper.properties
Start zookeeper
Zookeeper-server-start / usr/local/etc/kafka/zookeeper.properties &
Start kafka
Kafka-server-start / usr/local/etc/kafka/server.properties &
Create topic
Let's create a theme called "test" with a single partition and only one copy
Kafka-topics-create-zookeeper localhost:2181-replication-factor 1-partitions 1-topic test
View the created topic
We can now see this topic, if we run the list topic command:
Kafka-topics-list-zookeeper localhost:2181
Send some messages
Kafka provides a command-line client that receives input from a file or standard input and sends it as a message to the Kafka cluster. By default, each line is sent as a separate message.
Run the producer, and then type some messages in the console to send to the server.
Kafka-console-producer.sh-broker-list localhost:9092-topic test
Consumption message
Kafka also has a command-line consumer that dumps messages to standard output.
Kafka-console-consumer-bootstrap-server localhost:9092-topic test-from-beginning
This is the answer to the question about how to install kafka in mac. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.