Database Reference
In-Depth Information
CHAPTER 10
Cassandra Utilities
So far in this topic, we have covered almost all aspects of Cassandra, including data
modeling, graph databases, batch analytics, performance tuning, and analyzing various
open source and commercial tools. Since we are progressing toward the end of this
book, one area worth discussing is various built-in utilities which are quite useful for
database administration, stress testing, or performing data migration or bulk loading.
Some of these topics have been discussed already in this topic. For example, the
stress testing tool for command line-based stress testing was described in Chapter 8 , the
token generator for token assignment in Chapter 1 , and a few nodetool options in
Chapters 3 , 4 , and 5 .
In this chapter we will solely discuss more Cassandra utilities, including:
The nodetool utility
sstable2json and json2sstable
Cassandra bulk loading (with CQL3 collections)
Cassandra nodetool Utility
Cassandra provides a number of operations, such as token assignment, ring manage-
ment, schema management, node management and monitoring, and so forth. Cas-
sandra's nodetool utility is a command-line interface that wraps all such operations with
simple commands. In this section, we will explore a number of these commands in de-
tail.
The nodetool utility is built-in and provided with the Cassandra distribution (found
in the $CASSANDRA_HOME/bin folder).
Search WWH ::




Custom Search