Skip to main content
bluespring
Silver ⭐️
May 4, 2022
Solved

Delete orphaned kafka partitions

We restarted kafka server. It complained about offline partitions. We used kafka-topics.sh command to find more info. It didn't show anything. Could someone instruct me how to delete offline partitions manually in detail? Thanks.

Bharati
BharatiAnswer
Gold ⭐️
May 9, 2022

@bluespring One should not be deleting the offline/online partitions that may cause in data loss or under-replicated partitions. You may reassign the partitions to new hosts following the document below:

https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-managing/topics/kafka-manage-cli-reassign-overview.html

3 replies

Bharati
Gold ⭐️
BharatiAnswer
Gold ⭐️
May 9, 2022

@bluespring One should not be deleting the offline/online partitions that may cause in data loss or under-replicated partitions. You may reassign the partitions to new hosts following the document below:

https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/kafka-managing/topics/kafka-manage-cli-reassign-overview.html

Translate
bluespring
Silver ⭐️
May 18, 2022

Thanks. It is very helpful.

Translate
DianaTorres
Community Manager
Community Manager
May 13, 2022

@bluespring Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator