Cassandra Documentation




        nodetool compact - Force a (major) compaction on one or more tables or
        user-defined compaction on given SSTables

        nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
                [(-pp | --print-port)] [(-pw <password> | --password <password>)]
                [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
                [(-u <username> | --username <username>)] compact
                [(-et <end_token> | --end-token <end_token>)]
                [--partition <partition_key>] [(-s | --split-output)]
                [(-st <start_token> | --start-token <start_token>)] [--user-defined]
                [--] [<keyspace> <tables>...] or <SSTable file>...

        -et <end_token>, --end-token <end_token>
            Use -et to specify a token at which compaction range ends

        -h <host>, --host <host>
            Node hostname or ip address

        -p <port>, --port <port>
            Remote jmx agent port number

        --partition <partition_key>
            String representation of the partition key

        -pp, --print-port
            Operate in 4.0 mode with hosts disambiguated by port number

        -pw <password>, --password <password>
            Remote jmx agent password

        -pwf <passwordFilePath>, --password-file <passwordFilePath>
            Path to the JMX password file

        -s, --split-output
            Use -s to not create a single big file

        -st <start_token>, --start-token <start_token>
            Use -st to specify a token at which the compaction range starts

        -u <username>, --username <username>
            Remote jmx agent username

            Use --user-defined to submit listed files for user-defined

            This option can be used to separate command-line options from the
            list of argument, (useful when arguments might be mistaken for
            command-line options

        [<keyspace> <tables>...] or <SSTable file>...
            The keyspace followed by one or many tables or list of SSTable data
            files when using --user-defined