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

Adding nodes to a Cassandra cluster


In order to add a node to a Cassandra cluster, you should consider the following configuration options in the Cassandra.yaml file:

  • auto_bootstrap: Set this configuration option to true so that a newly joining node can collect data from other nodes.

  • listen_address: Set this to the appropriate IP address of the node.

  • endpoint_snitch: Ensure that the new node is using the same snitch as that being used by the other nodes.

  • seed_provider: This lists the nodes that are in the seed node list in the existing cluster. Since this new node is bootstrapping, it can't be in the seed node list right now.

  • cluster_name: Ensure that the cluster name is the same as that of the other nodes in the cluster.

In the Cassandra-rackdc.properties file, update the correct datacentre and rack information for the new node. After ensuring that all configurations are good, start Cassandra on this new node. Once the new node is up and running, execute the nodetool cleanup command on all nodes...