我有工作的 kafka 实例,但现在它产生了数千个错误,如下所示:
[2016-06-24 01:33:28,092] ERROR [Replica Manager on Broker 0]: Error when processing fetch request for partition [test-topic,0] offset 45 from consumer with correlation id 85452. Possible cause: Request for offset 45 but we only have log segments in the range 0 to 0. (kafka.server.ReplicaManager)
我正在使用默认配置。我在 Node.js 代码中使用了多个主题。
UPD:重新安装kafka对我有帮助,但我想知道问题的原始根源。
最佳答案
请阅读此处了解问题根源 https://github.com/endgameinc/elasticsearch-river-kafka/issues/8
您可能删除了kafka中的某些文件或文件夹。
关于node.js - 卡夫卡错误: Request for offset X but we only have log segments in the range Y to Z,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38003060/