https://datahubproject.io logo
Title
j

jolly-airline-17196

05/25/2023, 7:51 AM
for the command
python3.9 -m datahub docker quickstart --zk-port 2182 --elastic-port 9201 --mysql-port 3307 --schema-registry-port 8082 --kafka-broker-port 9093  --dump-logs-on-failure
i have noticed that even though i specified the port numbers, the services don't bind to these numbers but to their respective default ports
INFO clientPortAddress is 0.0.0.0:2181 (org.apache.zookeeper.server.quorum.QuorumPeerConfig) 

........

INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory)
here i specified the --zk-port 2182 but it keeps binding to 2181, hence it fails since zookeeper is already running for me in my hadoop node. After a error flashes with the zookeeper container, the process keeps on running indefinitely, it does not fail, nor does it keeps me cancel it via CNTRL + C, also no logs are generated (using the last parameter i passed to the command) because the process never gets failed. i always have to force remove it via the kill -9 process_id command. Similiar case happens with my Mysql and sometimes with broker containers too. Also i tried removing the docker images and containers but it didn't help much. If anyone have ever faced similiar issues, please do help
a

astonishing-answer-96712

05/31/2023, 9:38 PM
Hi- have you attempted to set the port in the recipes for the containers themselves? This is the recommended best practice