Good day.
I have configured Kafka to run on docker swarm, when I try to use Python to
send messages, I am being presented with the error messages such as the
ones below in rapid succession, non-stop.
What changes should I make so that I am able to send messages to the broker?
ERROR:kafka.conn:Connect attempt to <BrokerConnection node_id=1
host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]> returned error
111. Disconnecting.
INFO:kafka.conn:<BrokerConnection node_id=1 host=localhost:9092
<connecting> [IPv6 ('::1', 9092, 0, 0)]>: Closing connection.
KafkaConnectionError: 111 ECONNREFUSED
WARNING:kafka.client:Node 1 connection failed -- refreshing metadata
INFO:kafka.conn:<BrokerConnection node_id=1 host=localhost:9092
<connecting> [IPv4 ('127.0.0.1', 9092)]>: connecting to localhost:9092
[('127.0.0.1', 9092) IPv4]
ERROR:kafka.conn:Connect attempt to <BrokerConnection node_id=1
host=loc...