I've been following Kafka Quickstart for "Setting up a multi-broker cluster" on a single machine. (Just for testing purposes).
Running Kafka with three properties files worked good. (I ran them on a single machine for testing)
server.properties :
broker.id=0
listeners=PLAINTEXT://:9092
server-1.properties :
broker.id=1
listeners=PLAINTEXT://:9093
server-2.properties :
broker.id=2
listeners=PLAINTEXT://:9094
Now, I want to create a cluster with three machines.
1) Do I run three Zookeeper for three machines? With the same port (2181)? Or Run just one Zookeeper on one machine?
2) When I run Kafka with server.properties, I know that I should have different broker.id for each machine. How about the listeners part? Do I use the same port?
listeners=PLAINTEXT://192.168.0.5:9092 (machine 1)
listeners=PLAINTEXT://192.168.0.6:9092 (machine 2)
listeners=PLAINTEXT://192.168.0.7:9092 (machine 3)