Database Reference
In-Depth Information
Before moving to the commands, let's print the nodetool version:
vivek@vivek-Vostro-3560:~/software/apache-cassandra-2.0.4/
bin$./nodetool version
ReleaseVersion: 2.0.4
The output from the preceding command shows that nodetool's release version is
2.0.4.
To print all the available commands with this utility, simply run the following com-
mand:
vivek@vivek-Vostro-3560:~/software/apache-cassandra-2.0.4/
bin$./nodetool
Let's start our discussion of the nodetool utility commands with Cassandra ring
management.
Ring Management
A Cassandra ring is made up of various data nodes. Two of the important operations
from a ring management perspective are
Checking ring status
Decommissioning a dead node
Checking Ring Status
In Chapter 1 , in the “Configuring Multiple Nodes over a Single Machine” section, we
discussed how to start a Cassandra cluster on a local machine. Refer to Chapter 1 for
information on starting a Cassandra cluster over a single machine. Once the cluster has
been started, we can print the Cassandra cluster ring information like this:
vivek@vivek-Vostro-3560:~/software/local-cluster/node4$
bin/nodetool ring
Running the preceding command prints this output on the console:
Search WWH ::




Custom Search