参考: https://blog.csdn.net/heizistudio/article/details/79568188 1.安装zookeeper zookeeper-3.4.6.tar.gz tar zxvf zookeeper-3.4.6.tar.gz cd zookeeper-3.4.6/src/c ./configure make make install 2.启动zookeeper服务 cd zookeeper-3.4.6/conf/ mv zoo_sample.cfg zoo…
修改 topic 的分区数 shiyanlou:bin/ $ ./kafka-topics.sh --zookeeper localhost:2181 --alter --topic mySendTopic --partitions 4WARNING: If partitions are increased for a topic that has a key, the partition logic or ordering of the messages will be affectedAdd…