iMajna
iMajna

Reputation: 499

Setting Cassandra on server IP

I'm trying to switch Cassandra from localhost to server IP where cassandra has been installed. In Cassandras config file:

cassandra.yaml

, I changed listen_address to my IP, also on seed and on rps_address. Beyond on picture you can see that also I have changed name of Cluster to

First Cluster

enter image description here

But when i start CQLSH I got:

enter image description here

Where am I doing wrong?

Upvotes: 1

Views: 3867

Answers (1)

iMajna
iMajna

Reputation: 499

If someone comes to this post and still don't know what the actually fu** is not working, here is the answer.

Listen address in cassandra always must stay on localhost but always. How to change the address than? Go in

cassandra.yaml

,and change:

rpc_address = your_server_IP ( it's on localhost)
rpc_start = true ( he is on false)

When you are trying to access cassandra in shell than type it like this:

sh ~cassandra/bin/cqlsh your_server_IP_which_you_set_as_RPC_ADDR

Something like:

sh ~cassandra/bin/cqlsh 10.12.123.123

Upvotes: 4

Related Questions