doujiang24 / lua-resty-kafka

Lua kafka client driver for the Openresty based on the cosocket API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

buffered messages send to kafka err: no resolver defined to resolve "cdh-1", retryable: true

lsasta opened this issue · comments

当我使用ip连接kafka的时候,发送数据是没有问题的。

local broker_list = {
                    { host = "10.201.x.x", port = 9092 }
                }

但是当我把ip改成了hostname来连接kafka的时候,却抛出错误:buffered messages send to kafka err: no resolver defined to resolve "cdh-1", retryable: true, topic: eap_test, partition_id: 0, length: 200, context: ngx.timer, client: 10.244.1.11, server: 0.0.0.0:80
我当前的版本是去年的代码,不知道今年是否对这个问题有修复。麻烦大神帮忙看一下