doujiang24 / lua-resty-kafka

Lua kafka client driver for the Openresty based on the cosocket API
BSD 3-Clause "New" or "Revised" License
802 stars 275 forks source link

Resolver issues, not solved? #113

Open ghost opened 3 years ago

ghost commented 3 years ago

I read #5 but the solutions offered there won't fix it for me.

I'm running kafka on aiven.io.

I even hardcoded the ip address in the code, still keep getting the unresolved error:

2021/07/19 22:25:00 [info] 2211#2211: *1 [lua] client.lua:141: _fetch_metadata(): broker fetch metadata failed, err:closed34.147.127.2328164, client: 94.190.202.241, server: in.integrati.org, request: "POST / HTTP/1.1", host: "in.integrati.org:3001"

I tried adding 'resolver 127.0.0.1' and 'resolver 8.8.8.8' in nginx.conf, didn't help either.

When I specify the host's name, I get this error:

2021/07/19 22:33:23 [info] 2335#2335: *1 [lua] client.lua:141: _fetch_metadata(): broker fetch metadata failed, err:no resolver defined to resolve "kafka-31d39b75-connectedcreations-8c47.aivencloud.com"kafka-31d39b75-connectedcreations-8c47.aivencloud.com28164, client: 94.190.202.241, server: in.integrati.org, request: "POST / HTTP/1.1", host: "in.integrati.org:3001"

What am I missing?

Thanks, Bastiaan.

ld-ma commented 2 years ago

配置一个dnsmasq即可解决