nodetool invalidatekeycache

Resets the global key cache parameter to the default, which saves all keys.

Resets the global key cache parameter to the default, which saves all keys.

Synopsis

nodetool <options> invalidatekeycache
Cassandra tarball installations:
installation_location/cassandra/bin
Table 1. Options
Short Long Description
-h --host Hostname or IP address.
-p --port Port number.
-pwf --password-file Password file path.
-pw --password Password.
-u --username Remote JMX agent username.
-- Separates an option from an argument that could be mistaken for a option.

Description

By default the key_cache_keys_to_save is disabled in the cassandra.yaml. This command resets the parameter to the default.

The location of the cassandra.yaml file depends on the type of installation:
Cassandra package installations /etc/cassandra/cassandra.yaml
Cassandra tarball installations install_location/cassandra/conf/cassandra.yaml