How to set an Apache Kafka multi node–multi broker cluster "Z"

Source: Internet
Author: User
Tags zookeeper

Set a multi node Apache ZooKeeper cluster
    • On every node of the cluster add the following lines to the file kafka/config/zookeeper.properties
Server.1=znode01:2888:3888server.2=znode02:2888:3888server.3=znode03:2888:3888#add here and servers if you wantinitlimit=5synclimit=2

For more informations on the meaning of the parameters please read Running replicated ZooKeeper.

    • On every node of the cluster create a file called myID in the folder represented by the DataDir property (By default, the folder is /tmp/zookeeper ). The myid file should only contains the ID of the Znode (' 1′for zNode01, ' 2 ' for ZNode02, etc ...)
Set a multi broker Apache Kafka Cluster
    • On every node of the cluster modify modify the property Zookeeper.connect from the file kafka/config/server. Properties:
zookeeper.connect=znode01:2181,znode02:2181,znode03:2181
    • On every node of the cluster modify the property Host.name from the file kafka/config/server.properties:
host.name=znode0x
    • On every node of the cluster modify the property broker.id from the file kafka/config/server.properties (Every broker in the cluster should has a unique ID)

How to set an Apache Kafka multi node–multi broker cluster "Z"

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.