cassandra developer
cassandra developer

Reputation: 21

Cassandra public IP not connecting

I'm using cassandra in ubuntu server. when I try to connect using CLI with public IP address, It returns connection refused. whereas If I tried with localhost, its working fine. I made the configuration changes in cassandra.yaml and storage-conf.xml. but still I have the problem. What change should be done ?

Thanks in advance..

s..I have connecting the server using ssh.

Upvotes: 2

Views: 807

Answers (3)

Hardik Bhalani
Hardik Bhalani

Reputation: 863

Changing localhost to 0.0.0.0 in cassandra.yaml is not always work. In case of JVM Implementation is different ,it wont work

Checkcassandra-env.shfile and make this entry at last along with JVM_OPTS options

JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=here your IP"

Upvotes: 1

CoderOnly
CoderOnly

Reputation: 1742

vi conf/cassandra.yaml and edit localhost to 0.0.0.0

Upvotes: 0

tomfanning
tomfanning

Reputation: 9660

Have you checked your firewall settings on the server to make sure connections are allowed to Cassandra?

Upvotes: 0

Related Questions