Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

kafka Topic - Can we decrease partition for a topic ?

avatar
Expert Contributor

Suppose at the time of creation of Topic we created a topic XX with 5 Partition and later we recognized that we dont need 2 , so can we reduce the number of partition for a Topic ?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

I got the answer for this question : Number of partitions for a topic can only be increased, never decreased

Reason for this as if we decrease the partition it will be data loss .

We can delete current topic and recreate new one with required partition to achieve this .

View solution in original post

1 REPLY 1

avatar
Expert Contributor

I got the answer for this question : Number of partitions for a topic can only be increased, never decreased

Reason for this as if we decrease the partition it will be data loss .

We can delete current topic and recreate new one with required partition to achieve this .