When/how does a topic “marked for deletion” get finally removed?

前端 未结 11 1023
天命终不由人
天命终不由人 2020-12-24 00:09

I have issued the command to delete a topic:

./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic  vip_ips_alerts

It seemed to

11条回答
  •  不思量自难忘°
    2020-12-24 00:38

    Check status of topic at zookeeper

    bin\windows>kafka-topics.bat --list --zookeeper localhost:2181
    Output: topic shows marked for deletion
    

    Setting delete.topic.enable=true in server.properties was not working as well.

    Solution: Check the zookeeper data directory location in zookeeper.properties file. it was dataDir=/tmp/zookeeper.
    Issue got resolved after updating "dataDir" to a new location.

    dataDir=zk-temp
    # the port at which the clients will connect
    clientPort=2181
    # disable the per-ip limit on the number of connections since this is a non-production config
    maxClientCnxns=0
    

提交回复
热议问题