#<gssapi :: simple:0x00007fdceb7f0f88>的未定义局部变量或方法`min_stat'

时间:2018-10-19 15:46:24

标签: apache-kafka ruby-kafka

我正在尝试使用ruby-kafka https://github.com/zendesk/ruby-kafka 我正在按如下方式使用它:

kafka = Kafka.new(["abc123d.xyz.cde.net:9093",
                   "abc123f.xyz.cde.net:9093",
                   "abc123h.xyz.cde.net:9093",
                   "abc123k.xyz.cde.net:9093"
                      ],
    sasl_gssapi_keytab: '/etc/krb5.keytab',
    sasl_gssapi_principal: 'abc09123@SOMETHING.ETED.NET'
    sasl_over_ssl: false)
    kafka.deliver_message("Hello, World!", topic: "TestTopic")

当我测试出来时,我会报错

NameError: undefined local variable or method min_stat'for# 你的意思是? maj_stat`

为什么我仍然收到此错误?

Fetching cluster metadata from kafka://abc123d.xyz.cde.net:9093
Opening connection to abc123d.xyz.cde.net:9093 with client id ruby-kafka...
Sending sasl_handshake API request 1 to abc123d.xyz.cde.net:9093
Waiting for response 1 from abc123d.xyz.cde.net:9093
Received response 1 from abc123d.xyz.cde.net:9093
GSSAPI: Initializing context with abc123d.xyz.cde.net:9093, principal abc09123@SOMETHING.ETED.NET
NameError: undefined local variable or method `min_stat' for #<GSSAPI::Simple:0x00007fdceb7f0f88>
Did you mean?  maj_stat

0 个答案:

没有答案