In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
I. Environmental preparation
1. Software
Zookeeper3.4.11 https://www.apache.org/dyn/closer.cgi/zookeeper/
Kafka1.0.0 https://www.apache.org/dyn/closer.cgi?path=/kafka/1.0.0/kafka_2.11-1.0.0.tgz
Java8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Hardware
✔ machine: 10.205.104.55
✔ machine: 10.205.102.52
✔ machine: 10.205.105.33
II. Installation
Jdk installation strategy
1. Unified directory / opt
2. Install zookeeper (three machines operate the same)
Cp conf/zoo_sample.cfg zoo.cfg
Grep ^ [^ #] conf/zoo.cfg
Add the machine id to the myid file in the dataDir=/opt/zookeeper-3.4.11/data directory
Machine: 10.205.104.55 write 1
Machine: 10.205.102.52 write 2
Machine: 10.205.105.33 write 3
Every machine has the same configuration.
Start zookeeper
Bin/zkServer.sh start
Inspection
3. Install kafka (each machine has a different broker.id. According to this, it is 0pl 1 pm 2)
Each machine is configured accordingly
Start kafka (start each machine)
Bin/kafka-server-start.sh config/server-1.properties &
Check
Create topic
Bin/kafka-topics.sh-- create-- zookeeper 10.205.104.55 bin/kafka-topics.sh-- replication-factor 3-- partitions 1-- topic my-replicated-topic
View topic information
Bin/kafka-topics.sh-describe-zookeeper 10.205.104.55 zookeeper 2181-topic my-replicated-topic
Push message
Bin/kafka-console-producer.sh-- broker-list 10.205.104.55 topic my-replicated-topic
Consumption information
Bin/kafka-console-consumer.sh-- bootstrap-server 10.205.104.55 from-beginning-- topic my-replicated-topic
Installation completed
Finally, send the optimization article: kafka parameter configuration optimization.
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.