nodetool stop
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 |
|
Stops the compaction process.
Synopsis
nodetool <options> stop -- <compaction_type>
Tarball and Installer No-Services path:
<installation_location>/resources/cassandra/bin
Short | Long | Description |
---|---|---|
|
|
Hostname or IP address. |
|
|
Port number. |
|
|
Password file path. |
|
|
Password. |
|
|
Remote JMX agent username. |
compaction type |
Supported types are:
|
|
|
Separates an option from an argument that could be mistaken for an option. |
|
Description
Stops all compaction operations from continuing to run. This command is typically used to stop a compaction that has a negative impact on the performance of a node. After the compaction stops, the remaining operations in the queue are continued. Eventually, the compaction is restarted.
In DataStax Enterprise 5.0 and later, a single compaction operation can be stopped with the -id
option.
Run nodetool compactionstats
to find the compaction ID.