Book Image

Apache Cassandra Essentials

By : Nitin Padalia
Book Image

Apache Cassandra Essentials

By: Nitin Padalia

Overview of this book

Apache Cassandra Essentials takes you step-by-step from from the basics of installation to advanced installation options and database design techniques. It gives you all the information you need to effectively design a well distributed and high performance database. You’ll get to know about the steps that are performed by a Cassandra node when you execute a read/write query, which is essential to properly maintain of a Cassandra cluster and to debug any issues. Next, you’ll discover how to integrate a Cassandra driver in your applications and perform read/write operations. Finally, you’ll learn about the various tools provided by Cassandra for serviceability aspects such as logging, metrics, backup, and recovery.
Table of Contents (14 chapters)
Apache Cassandra Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Replacing dead nodes in a cluster


To replace a dead node, we should first remove that node using the nodetool removenode command as described earlier, and then we should add the new node as discussed in the previous section.

Note

If the new node's IP address is different to the previous dead node's IP address, then start Cassandra on the new node with the startup parameter replace_address=<IP-address-of-dead-node>.

To replace a node that is alive and being replaced due to hardware upgrade or another such reason, we should first add the new node and then decommission the old node using the nodetool decommission command, as discussed previously.