Support Questions
Find answers, ask questions, and share your expertise

kafka Topic - Can we decrease partition for a topic ?

Solved Go to solution

kafka Topic - Can we decrease partition for a topic ?

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

Accepted Solutions

Re: kafka Topic - Can we decrease partition for a topic ?

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

Re: kafka Topic - Can we decrease partition for a topic ?

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