Kafka版本:0.10.2.1(服务器)
Zookeeper:与Kafka捆绑
发行
如果删除主题,然后重新启动代理程序,则会失败。为delete.topic.enable=true配置了代理
删除命令:
./kafka-topics.sh --zookeeper localhost:2182 --delete --topic MY.TOPIC.NAME
目前唯一的解决方法是手动转到日志目录并使用rmrf删除主题目录。贴出来就可以了。
错误:
[2017-06-09 12:24:43,359] ERROR There was an error in one of the threads during logs loading: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (kafka.log.LogManager)
[2017-06-09 12:24:43,360] FATAL [Kafka Server 101], Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at kafka.log.Log$.parseTopicPartitionName(Log.scala:1146)
at kafka.log.LogManager.$anonfun$loadLogs$10(LogManager.scala:153)
at kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:57)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2017-06-09 12:24:43,363] INFO [Kafka Server 101], shutting down (kafka.server.KafkaServer)
1条答案
按热度按时间x8goxv8g1#
如果您的主题名称中确实有点(“.”),如图所示,我相信您遇到了这个缺陷:kafka-5232 kafka broker无法启动,如果在其名称中包含点的主题被标记为删除,但在以前的正常运行期间没有被删除