Database Reference
In-Depth Information
upgradesstable
This upgradesstable command rebuilds SSTables. It is generally used during up-
grades or during compression ratio changes.
snapshot
The nodetool snapshot command we have seen earlier while taking a backup (refer
to Chapter 6 , Managing a Cluster - Scaling, Node Repair, and Backup ) basically creates
hard links for SSTables in the snapshots folder; these are used to restore the node.
There is a command called clearsnapshot to remove the snapshot. The command has
the following options:
# Create snapshot
nodetool -h CASSANDRA_HOST snapshot [Keyspaces...] -cf
[columnfamilyName] -t [snapshotName]
# Remove snapshots
nodetool -h CASSANDRA_HOST clearsnapshot [Keyspaces...] -t
[snapshotName]
There are more commands that nodetool provides that we have not discussed here. In
general, we have discussed the commands that you will find frequently. The rest of the
commands can be learned from the help text provided by nodetool .
Note
The nodetool documentation (this is probably outdated) can be found at ht-
tp://wiki.apache.org/cassandra/NodeTool .
Relatively newer documentation on nodetool is available at http://www.datastax.com/
documentation/cassandra/2.1/cassandra/tools/toolsNodetool_r.html .
Search WWH ::




Custom Search