Containerized Kafka client errors when producing messages to the host Kafka server

前端 未结 3 1247
梦谈多话
梦谈多话 2020-12-09 20:13

There are a number of similar types of queries on stackoverflow, but none quite match the problem that I am seeing.

I have a zookeeper/kafka setup on my server which

3条回答
  •  一个人的身影
    2020-12-09 20:37

    Your producer (in the container) can't resolve the host name of your Linux guest OS which is returned in the Kafka producers initial metadata request to the bootstrap server. You can add it manually to the /etc/hosts file inside the container or add "--add-host" parameter to the docker run command that launches the image running your producer

提交回复
热议问题