Subject: kafka connection from docker

I do not understand this.

You have on a physical host running zookeeper locally and a broker running
as well. These are using default physical host portslike 2181, 9092 etc.

Then you have installed zookeeper and kaka broker on dockers?

docker run --net=host -d --name zookeeper -p 2181:2181 -p 2888:2888 -p
3888:3888 jplock/zookeeper

docker run -d --net=host --name kafka_broker1 -p 9092:9092 -e

Ok --net=host means that the docker will use the host port as its own.
Indeed other  mappings will be discarded. You can either map dockers to
host port or use other posts but not both!
Dr Mich Talebzadeh

LinkedIn *
*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.
On Thu, 17 Oct 2019 at 22:13, Wang, Shuo <[EMAIL PROTECTED]> wrote: