About the nodetool utility
Where is the cassandra-env.sh file?
The location of the cassandra-env.sh file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
The nodetool utility is a command-line interface for monitoring a cluster and performing routine database operations.
It is typically run from an operational node.
The nodetool utility supports the most important JMX metrics and operations, and includes other useful commands for cluster administration, such as the proxyhistogram command.
Command formats
nodetool [options] command [args]
Tarball and Installer No-Services path:
<installation_location>/resources/cassandra/bin
Connection options
Connection options specify how to connect and authenticate for all nodetool commands:
| Short | Long | Description |
|---|---|---|
|
|
Hostname or IP address. |
|
|
Port number. |
|
|
Password file path. |
|
|
Password. |
|
|
Username. |
— |
Separates command parameters from a list of options. |
|
Example:
nodetool -u username -pw password describering demo_keyspace
Using nodetool command help
nodetool help-
Provides a listing of
nodetoolcommands. nodetool help command name-
Provides help on a specific command. For example:
nodetool help upgradesstablesFor more information, see
nodetoolhelp.