Is it possible to add partitions to an existing topic in Kafka 0.8.2
Looks like you can use this script instead: bin/kafka-topics.sh –zookeeper zk_host:port/chroot –alter –topic my_topic_name –partitions 40 In the code it looks like they do same thing: AdminUtils.createOrUpdateTopicPartitionAssignmentPathInZK(topic, partitionReplicaList, zkClient, true) kafka-topics.sh executes this piece of code as well as AddPartitionsCommand used by kafka-add-partition script. However you have to be aware of re-partitioning when using key: … Read more