Kafka增加分片和副本

./kafka-topics.sh --zookeeper zk_host:port/chroot --alter --topic my_topic_name --partitions 40 
./kafka-topics.sh --zookeeper zk_host:port/chroot --alter --topic test2 --replication-factor 3

refer:https://stackoverflow.com/questions/33677871/is-it-possible-to-add-partitions-to-an-existing-topic-in-kafka-0-8-2
refer:https://stephenzhou.net/2019/07/01/add-kafka-replica/
refer:https://stackoverflow.com/questions/37960767/how-to-change-the-number-of-replicas-of-a-kafka-topic

comments powered by Disqus