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"