Hi,
I am getting the following error while connecting to kafka running in docker and port forwarded to localhost. I can shell into the docker and get topics etc. I’ve tested localhost:9092 using kafkacat and am able to list the topics etc.
00:52:17.966 [info] Group member (some_group,coor=#PID<0.261.0>,cb=#PID<0.256.0>,generation=0):
failed to join group
reason: {:nxdomain,
[
{:kpro_connection, :connect, 4,
[
file: '/home/bw/deps/kafka_protocol/src/kpro_connection.erl',
line: 208
]},
{:kpro_connection, :init, 4,
[
file: '/home/bw/deps/kafka_protocol/src/kpro_connection.erl',
line: 170
]},
{:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 240]}
]}
00:52:17.967 [info] Group member (some_group,coor=#PID<0.261.0>,cb=#PID<0.256.0>,generation=0):
Leaving group, reason: :shutdown
Config is
producer: [
module: {BroadwayKafka.Producer, [
hosts: [localhost: 9092],
group_id: "some_group",
topics: ["some_topic"],
partition: 0,
]},
concurrency: 1
],
processors: [
default: [
concurrency: 10
]
]