Docker Community Forums

Share and learn in the Docker community.

Cannot connect to MX4J port of Cassandra


(Candysmurfhub) #1

Hello,

This is the command that I ran my Cassandra docker instance. I exposed few ports. Only port 8082 is always connection refused. Other ports are fine. Port 8082 is MX4J port specified in the cassandra-env.sh file.

Command:
docker run --name cass -p 8082:8082 -p 7199:7199 -p 9160:9160 -p 9042:9042 -d cass-sample

Error:
xxx xxx xxx xxx (us-cli): Connection refused

If you have any insight, please help.

Thank you!


(Candysmurfhub) #2

Nevermind. I figured it out. Thank you.


(Nathan Le Claire) #3

@candysmurfhub You may want to post the answer here for others to see, just in case.