使用Lagom 1.4.11,kafka 0.11 与制片人的沟通似乎有效,因为制片人已经制作了一些东西。 只有消费者有错误。
[WARN] [03/13/2019 19:36:45.937] [gui-akka.kafka.default-dispatcher-8] [akka://gui/system/kafka-consumer-1] Consumer interrupted with WakeupException after timeout. Message: null. Current value of akka.kafka.consumer.wakeup-timeout is 3000 milliseconds
[WARN] [03/13/2019 19:36:50.080] [gui-akka.kafka.default-dispatcher-10] [akka://gui/system/kafka-consumer-1] Consumer interrupted with WakeupException after timeout. Message: null. Current value of akka.kafka.consumer.wakeup-timeout is 3000 milliseconds
似乎我的µService与kafka没有连接。 我有一个kafka-0吊舱,kafka-zookeeper-0。
我用
安装了它helm install --name kafka --namespace avalon bitnami/kafka -f values.yaml
是他们可以帮助的人。 谢谢。
已添加。
我发现制作人创建了以下主题:
I have no name!@kafka-0:/$ kafka-topics.sh --zookeeper 10.***.21.50:2181 --list
item-issued-topic
topic-item-created
I have no name!@kafka-0:/$ kafka-console-consumer.sh --bootstrap-server kafka-0:9092 --topic topic-item-created --from-beginning
^CProcessed a total of 0 messages
kafka似乎不存储消息。
答案 0 :(得分:0)
我也遇到了同样的问题,通过查看此文档即可解决
./kafka-console-consumer.sh --bootstrap-server kafka-com:9094 --topic test --from-beginning --partition 0