- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
kafka Topic - Can we decrease partition for a topic ?
- Labels:
-
Apache Kafka
Created ‎11-08-2017 01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
Created ‎11-08-2017 01:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
Created ‎11-08-2017 01:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
