Article directory
1. Build a kafka pseudo-cluster
cd /opt/software/kafka_2.13-2.7.1
cp config/server.properties config/server-1.properties
cp config/server.properties config/server-2.properties
Modify the corresponding configuration information, taking server-2.properties as an example,
vim config/server-2.properties
Modify three places so as not to duplicate the first kafka configured before.
log.dirs=/opt/software/kafka_2.13-2.7.1/kafka-log-2
listeners=PLAINTEXT://192.168.220.66:9094
broker.id=2
Start these two kafka
bin/kafka-server-start.sh -daemon config/server-1.properties
bin/kafka-server-start.sh -daemon config/server-2.properties
jps
2. Multiple machine clusters
Update