nodetool command is a utility for administering the Scylla/Cassandra cluster. It is a standard command for Scylla/Cassandra systems.
There are a number of ways you can get nodetool installed on your local system.
It comes with the latest Cassandra release, so you can get it by installing Cassandra using an appropriate method for your platform. On a Mac, for example, you can install Cassandra with
homebrew by typing
brew install cassandra.
You can also pick up both nodetool and cqlsh from the Scylla Tools github repository. Nodetool can then be run from
In order to enable nodetool administration of Scylla, the deployment comes with an SSH capsule configured as a SOCKS proxy. The first step is to provision a user with SSH access to your deployment in order to use the proxy.
Once you have a trusted user, then you will use the
ssh command under SOCKS Proxy Configuration to open a secure tunnel to your deployment. When the tunnel is open, use a new terminal window to run
nodetool commands. The commands have the following format:
nodetool -h [host] -p [port] -u [user] -pw [password] [proxy info] [command] [arguments]
The host, port, user, and password parameters are all present, followed by the SOCKS proxy information, followed by the nodetool command and any of it arguments. There are example commands for the deployment in the Nodetool Administration panel. These will provide you with the status of your Scylla cluster.
Nodetool has a wide range of commands, but on Compose we limit which are available to avoid situations which could damage the automated maintenance of the cluster. These are the available commands:
Provides statistics about a table, including number of SSTables, read/write latency, partition size and column count.
Provides in-depth diagnostics regard column family.
Triggers the immediate cleanup of keys no longer belonging to a node
Force a (major) compaction on one or more column families.
Print history of compaction.
Print statistics on compactions.
Print the name, snitch, partitioner and schema version of a cluster.
Shows the token ranges info of a given keyspace.
Flush one or more column families.
Print the end points that owns the key.
Shows the gossip information for the cluster.
Print node information.
Move node on the token ring to a new token.
Print network information on provided host (connecting node by default).
Print statistic histograms for network operations.
Repair one or more column families.
The nodetool ring command display the token ring information.
Print cluster information.
Print status of ScyllaDB backup.
Print status of native transport (binary protocol).
Print status of gossip.
Print the DB version.
The full list of commands, including those which are not available, is in the Scylla nodetool docs. Nodetool is a subset of the Cassandra nodetool; you can find more on that command, as it has more detail on the subcommand use in the Cassandra Wiki for nodetool.
The following commands are blocked from use by nodetool when applied to a Compose Scylla deployment:
clearsnapshot, decommision, disablebackup, disablebinary, disablegossip, drain, enablebackup, enablebinary, enablegossip, getlogginglevels, listsnapshots, rebuild, refresh, removenode, setlogginglevel, settraceprobability, snapshot, stop.
If this article didn't solve things, summon a human and get some help!
Updated almost 3 years ago