0
votes

Hi I have added a new node in cassandra. I have done same changes in cassandra.yaml file in new node and below is the cassandra-rackdc.properties detail on both node. dc=DC1 rack=RAC1 From any node I can't see different node.

Old existing node

[root@cas1 apache-cassandra-2.1.3]# bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens  Owns    Host ID                               Rack
UN  192.168.1.101  110.28 KB  256     ?       2616878e-d276-46d3-ad1c-01a2e8fd15c2  rack1

New Node

[root@cas2 apache-cassandra-2.1.3]# bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens  Owns    Host ID                               Rack
UN  192.168.1.102  128.62 KB  256     ?       2616878e-d276-46d3-ad1c-01a2e8fd15c2  rack1

Both are vmware machine.

1
Did you change the - seeds configuration? - Simon Fontana Oscarsson

1 Answers

1
votes

It's not enough to have same settings for the 2 nodes. You have to help the new node to discover the cluster it intends to join.

You do this by updating the seeds property in cassandra.yaml of the new node.

  • seeds (Default: 127.0.0.1) A comma-delimited list of IP addresses used by gossip for bootstrapping new nodes joining a cluster. If your cluster includes multiple nodes, you must change the list from the default value to the IP address of one of the nodes.

Reference used: https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html