Kafka cluster Installation

Source: Internet
Author: User
Tags zookeeper

Cluster installation
1. Decompression
2, modify the Server.properties
Broker.id=1
zookeeper.connect=work01:2181,work02:2181,work03:2181

3. Start the Zookeeper cluster

4. Start broker on each node
Bin/kafka-server-start.sh config/server.properties

5. Create a topic in the Kafka cluster
bin/kafka-topics.sh--create--zookeeper work01:2181--replication-factor 3--partitions 1--topic Order

6. Write a message to a topic with a producer
bin/kafka-console-producer.sh--broker-list work01:9092--topic Order

7. Use a comsumer to read information from a topic
bin/kafka-console-consumer.sh--zookeeper work01:2181--from-beginning--topic Order

8. View a topic partition and copy status information
bin/kafka-topics.sh--describe--zookeeper work01:2181--topic Order

Kafka cluster Installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.