Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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 .