1

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?

Community
  • 1
  • 1
iMajna
  • 489
  • 4
  • 28
  • Nothing. Changing the cluster name isn't that easy - see this [SO question](http://stackoverflow.com/questions/22006887/cassandra-saved-cluster-name-test-cluster-configured-name) – LHWizard Jul 19 '16 at 12:59
  • I'm intersted in chaning IP, cluster is just an example.. – iMajna Jul 19 '16 at 13:21
  • ah, your image of the yaml file doesn't show the new IP address, sorry I missed it. – LHWizard Jul 19 '16 at 17:12
  • Did you restart the node after changing the settings ? And what command did you use to start cqlsh ? Did you try to run cqlsh from another node, using the new IP address ? – Nicomak Jul 20 '16 at 04:40
  • Yes, and I was starting the node with sh ~/cassandra/bin/cqlsh – iMajna Jul 20 '16 at 08:08

1 Answers1

4

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
iMajna
  • 489
  • 4
  • 28