Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

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

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 .

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.