Reputation: 305
I have two instances on AWS EC2. In one of the instance I have installed Cassandra inside docker.
Now I want to connect to cassandra from another AWS instance. Can someone help me to do it.
I found this link https://github.com/nicolasff/docker-cassandra/issues/5 But not working for me.
Upvotes: 2
Views: 451
Reputation: 669
lvthillo's comment would work. The Cassandra should expose the port to the node. So other node could access it.
Another note: if container restarts, Cassandra data will be lost. You should at least mount the node's local directory into container. docker run --name some-cassandra -v /my/own/datadir:/var/lib/cassandra -p 9042:9042 -d cassandra
Upvotes: 2