Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_fetch_metadata(): all brokers failed in fetch topic metadata, #162

Open
kfrtiamo opened this issue Feb 20, 2024 · 1 comment
Open

_fetch_metadata(): all brokers failed in fetch topic metadata, #162

kfrtiamo opened this issue Feb 20, 2024 · 1 comment

Comments

@kfrtiamo
Copy link

local producer = require "resty.kafka.producer"

local brokers = {
{ host = "10.154.46.66", port = 9092 }
}
local producer_config = {
["bootstrap.servers"] = "10.154.46.66:9092",
["sasl.username"] = "xxxxx",
["sasl.password"] = "xxxxxxxxg",
["sasl.mechanism"] = "PLAIN",
["security.protocol"] = "SASL_PLAINTEXT"
}

local p, err = producer:new(producer_config)

if not p then
ngx.log(ngx.ERR, "failed to create kafka producer: ", err)
ngx.say(ngx.ERR, "failed to create kafka producer: ", err)
return
else
ngx.say(ngx.ERR, "create kafka producer: ", err)
end

一直报
2024/02/20 14:50:30 [error] 27622#0: *15 [lua] client.lua:151: _fetch_metadata(): all brokers failed in fetch topic metadata, client: 10.139.152.93, server: localhost, request: "POST /isales-open-agc-transporter/buryingPoint/push HTTP/1.1", host: "10.154.44.214" 2024/02/20 14:50:30 [error] 27622#0: *15 [lua] buryingPointSend.lua:124: not 1 failed to send message: not found topic, client: 10.139.152.93, server: localhost, request: "POST /isales-open-agc-transporter/buryingPoint/push HTTP/1.1", host: "10.154.44.214"
什么问题导致的呢

@qq1012827513
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants