Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

Replacing a node

Sometimes, instead of removing a bad node and adding a new one, you want to replace a node. In larger clusters, this becomes important, in that a new node can be designated as a replacement to a prior, down node. This means that, when the node starts up, it will contact the seed nodes and receive the same token ranges as the previous node.

Let's say that 192.168.0.103 goes down, and I need to replace it. I can re-instance a new node, say, 192.168.0.105. To ensure that 105 gets the same token ranges as 103 had, I can add this one line to the end of the cassandra-env.sh file at 105:

JVM_OPTS="$JVM_OPTS -Dcassandra.replace_address=192.168.0.103"

Now, when 105 starts up, it will be assigned the same token ranges that 103 had. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Apache Cassandra in Just 2 Hours

Learn Apache Cassandra in Just 2 Hours

Navdeep Kaur

Publisher Resources

ISBN: 9781789131499Supplemental Content