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
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