kafka-0.8.2 hortonworks
#删除命令
bin/kafka-topics.sh --delete --zookeeper server:2181 --topic topic3
#查看当前topic命令
bin/kafka-topics.sh --list --zookeeper server:2181
#出现topic状态现象
topic1
topic2
topic3 - marked for deletion
解决方案如下
#进入zookeeper控制台
zookeeper-client
#删除topic3节点
rmr /config/topics/topic3
rmr /admin/delete_topics/topic3
#删除每个kafka节点的topic3的数据
ssh root@slave1 'rm -rf /kafka-logs/topic3*'
ssh root@slave2 'rm -rf /kafka-logs/topic3*'
...