Adding a new node to the cluster

Once .100 is up and running, I can add a second node to the cluster quite easily. We will assume that I now want to add 192.168.0.100 as a new node in my cluster.

All of the configuration properties mentioned prior to all of the files (cassandra.yaml, cassandra-env.sh, cassandra-rackdc.properties, jvm.options) should be specified exactly the same as the first node. The exceptions are these two lines in the cassandra.yaml file:

listen_address: 192.168.0.101rpc_address: 192.168.0.101

Start the new node up, and tail the log to make sure it joins the cluster.

tail -f /var/log/cassandra/system.log

The seed node will stay the same for 101's configuration:

seeds: "192.168.0.100"

The seed node designation in Cassandra ...

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.