gpt4 book ai didi

apache-kafka - 无法删除 kafka 主题

转载 作者:行者123 更新时间:2023-12-03 17:37:56 45 4
gpt4 key购买 nike

我正在使用 kafka、zookeeper 和 kafka-manager 来管理集群。

我有 3 个节点集群。在我从一开始就设置的所有集群中 delete.topic.enable=true
现在,当我想删除一个主题时,它显示以下错误。
topicxyz - marked for deletion
但它没有被删除。

我也尝试从 kafka-manager 中删除,它说
Yikes! KeeperErrorCode = NodeExists for /admin/delete_topics/topicxyz
错误日志:

卡夫卡经理 :

[ESC[31merrorESC[0m] k.m.ApiError$ - error : KeeperErrorCode = NodeExists for /admin/delete_topics/topicxyz
org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /admin/delete_topics/topicxyz
at org.apache.zookeeper.KeeperException.create(KeeperException.java:119) ~[org.apache.zookeeper.zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[org.apache.zookeeper.zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783) ~[org.apache.zookeeper.zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:721) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
at org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:704) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:108) ~[org.apache.curator.curator-client-2.10.0.jar:na]
at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:701) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:477) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:467) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:447) ~[org.apache.curator.curator-framework-2.10.0.jar:na]
[ESC[37minfoESC[0m] k.m.a.KafkaManagerActor - Updating internal state...

卡夫卡没有错误日志。 动物园管理员标准输出错误日志仅显示警告,标准错误日志显示 Invalid config, exiting abnormally
kafka 版本 :kafka_2.12-0.10.2.0

话题描述 :
 $ bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic topicxyz
Topic:topicxyz PartitionCount:1 ReplicationFactor:1 Configs:
Topic: topicxyz Partition: 0 Leader: -1 Replicas: 3 Isr:

请帮忙。

最佳答案

我不确定您使用的是哪个 kafka 版本。但是删除主题之前有一个错误。引用 here & here .

关于apache-kafka - 无法删除 kafka 主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44037049/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com