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
docker run -d --net=host --name kafka_broker1 -p 9092:9092 -e
KAFKA_ADVERTISED_HOST_NAME=22.214.171.124 -e ZOOKEEPER_IP=126.96.36.199 -e
KAFKA_BROKER_ID=1 -e KAFKA_BROKER_PORT=9092 -e KAFKA_ADVERTISED_PORT=9092
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 * https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
*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: