我正在尝试使用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")
有谁知道我为什么会收到这个错误?