-
cp server.properties server1.properties
-
Edit the file and search "broker.id" and put = 1
-
Search "listeners=PLAINTEXT" and put: listeners=PLAINTEXT://localhost:9092 , every broker have to have different port
-
Search "log.dirs" and put: log.dirs=/tmp/kafka_1-logs
Then run bin/kafka-server-start.sh config/server.properties bin/kafka-server-start.sh config/server1.properties bin/kafka-server-start.sh config/server2.properties
etc
bin/zookeeper-shell.sh localhost:2181 ls /brokers/ids