gpt4 book ai didi

apache-kafka - 无法连接到任何种子代理

转载 作者:行者123 更新时间:2023-12-01 05:52:22 45 4
gpt4 key购买 nike

我正在尝试使用 ruby-kafka gem 发送消息,但我收到错误 Could not connect to any of the seed brokers

kafka::ConnectionError: Could not connect to any of the seed brokers:
- kafka:broker1: Connection error EOFError: EOFError
- kafka:broker2: Connection error EOFError: EOFError
- kafka:broker3: Connection error EOFError: EOFError
- kafka:broker4: Connection error EOFError: EOFError

https://github.com/zendesk/ruby-kafka

我创建了 krb5.keytab用于身份验证的文件。
kafka = Kafka.new(["broker1",
"broker2",
"broker3",
"broker4"
],
sasl_gssapi_keytab: '/etc/krb5.keytab')
kafka.deliver_message("Hello, World!", topic: "TestTopic")

有谁知道为什么我会收到这个错误?

最佳答案

您可能正在使用 Kafka 0.10。从 0.7.x 版本开始,在 kafka 0.11 中替换新的 Record Batch 格式时,不再支持 Kafka 0.10。因此,请使用 0.6.x 分支,或升级您的 kafka 版本。如此处所述:

https://github.com/zendesk/ruby-kafka/issues/672

关于apache-kafka - 无法连接到任何种子代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52862054/

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