You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Yinping YP12 Wang <wa...@lenovo.com> on 2016/02/22 07:55:53 UTC

How to recover kafka topic dead partition not served

kafka.apache.org:

  The kafka version I use is kafka_2.10-0.8.2.0,I create topic with 3 replication in kafka cluster.
When the kafka cluster runs a long time,some topic partitions become dead,so can't work.Restart kafka
can't solve recover topic partition.The solution I use is delete all kafka data on the disk and metedata
on the zookeeper rough, then recreate topic at present,
  The topic and its patition metadata can be deleted when no producer writes data to the topic by using
the kafka "bin/kafka-topics.sh --delete" command.Otherwise,the topic just marked deletion by zookeeper
and the kafka topic data still on the disk.
  So,I have two questions to ask:
  One,how to delete a topic include its data and metedata,not just marked deletion ?
  Two,if the console show some partition or replicate partition of a topic is not served by
"bin/kafka-topics.sh --describe --zookeeper __ --topic __" command,how to recover it ?

                                           Thank You
                                                            Mr Wang