I have a Kafka cluster running with 2 partitions. I was looking for a way to increase the partition count to 3. However, I don't want to lose existing messages on the topic. I tried stopping Kafka, modifying the server.properties
file to increase the number of partitions to 3 and restart Kafka. However, that does not seem to change anything. Using Kafka ConsumerOffsetChecker
, I still see it is using only 2 partitions. The Kafka version I am using is 0.8.2.2. In version 0.8.1, there used to be a script called kafka-add-partitions.sh
, which I guess might do the trick. However, I don't see any such script in 0.8.2.
- Is there any way of accomplishing this?
I did experiment with creating a whole new topic and for that one, it does seem to use 3 partitions as per the change in the server.properties
file. However, for existing topics, it doesn't seem to care.