cassandra_garbagecollect -- Removes deleted data from one or more tables.

Synopsis

Removes deleted data from one or more tables.

Requirements

The below requirements are needed on the host that executes this module.

Parameters

keyspace (optional, str, None)
Keyspace to clean up data from.
table (optional, str, None)
Table to clean up deleted data from.
granularity (optional, str, ROW)

ROW (default) removes deleted partitions and rows.

CELL also removes overwritten or deleted cells.

jobs (optional, int, 2)

Number of SSTables affected simultaneously.

Set to 0 to use all compaction threads.

host (optional, str, 127.0.0.1)
The hostname.
port (optional, int, 7199)
The Cassandra TCP port.
password (optional, str, None)
The password to authenticate with.
password_file (optional, str, None)
Path to a file containing the password.
username (optional, str, None)
The username to authenticate with.
nodetool_path (optional, str, None)
The path to nodetool.
nodetool_flags (optional, str, -Dcom.sun.jndi.rmiURLParsing=legacy)
Flags to pass to nodetool.
debug (optional, bool, False)
Enable additional debug output.

Examples

- name: Remove deleted data from a table
  community.cassandra.cassandra_garbagecollect:
    keyspace: mykeyspace
    tables: mytable

Return Values

msg (success, str, )
A brief description of what happened.

Status

Authors

  • Rhys Campbell (@rhysmeister)