Adding to previous answer by user2720864
Suppose you need a Kafka system with a lower configuration.
7 knots Kafka
3 Zoo Keepers
In order to achieve this installation, 7 Kafka instances, in 7 different / vm servers (instances), and in each of these instances set a different broker identifier, this will allow zookeeper to identify the different kafka nodes for accounting and maintenance. broker.id = X (/config/server.properties)
To start zookeepers, you can use 3 of the previous kafka instances, or you can use new servers to start zookeepers. Once the servers running zookeepers are resolved, change /config/server.properties to specify zookeepers.
zookeeper.connect = hostname1: port1, hostname2: port2
In a distributed environment, it's nice to have 3 zoo keepers. While there is only one zookeeper that acts like a true master, the other 2 zookeepers act like a failure. When the master fails, one of the two ZK takes over as the leader.
I found this link very useful, it helped me clarify a lot about kafka architecture.
This is a good reference for all configurations in properties files in kafka.
Hope this helps!
source share