In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install kafka 0.8. the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
1. For zookeeper installation, please refer to http://blog.csdn.net/gudaoqianfu/article/details/7327191.
two。 To install kafka, first extract the kafka, then modify the kafka/config/serverities
The main modified parameter is brokerid,hostname, and there is also information related to zookeeper.
3. Start zookeeper first
Restart kafka bin/kafka-server-start.sh config/server.properties
4. Create a topic:
Bin/kafka-topics.sh-create-zookeeper localhost:2181-replication-factor 3-partitions 1-topic mykafka
View Topic:
Bin/kafka-topics.sh-list-zookeeper localhost:2181
five
View details:
Bin/kafktopics.sh-- describe-- zookeeper 192.168.40.132VR
Topic:mykafka PartitionCount:1 ReplicationFactor:3 Configs:
Topic: mykafka Partition: 0 Leader: 133 Replicas: 133134132 Isr: 134
Send a message:
Bin/kafka-console-producer.sh-- broker-list 192.168.40.134-- topic mykafka
23423
^ C
Bin/kafka-console-producer.sh-- brokelist 192.168.40.134-- topic mykafka
4533
This is the end of this article on "how to install kafka 0.8". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.