salt.modules.cassandra_mod

Warning

The cassandra module is deprecated in favor of the cassandra_cql module.

Cassandra NoSQL Database Module

depends
  • pycassa Cassandra Python adapter

configuration

The location of the 'nodetool' command, host, and thrift port needs to be specified via pillar:

cassandra.nodetool: /usr/local/bin/nodetool
cassandra.host: localhost
cassandra.thrift_port: 9160
salt.modules.cassandra_mod.column_families(keyspace=None)

Return existing column families for all keyspaces or just the provided one.

CLI Example:

salt '*' cassandra.column_families
salt '*' cassandra.column_families <keyspace>
salt.modules.cassandra_mod.column_family_definition(keyspace, column_family)

Return a dictionary of column family definitions for the given keyspace/column_family

CLI Example:

salt '*' cassandra.column_family_definition <keyspace> <column_family>
salt.modules.cassandra_mod.compactionstats()

Return compactionstats info

CLI Example:

salt '*' cassandra.compactionstats
salt.modules.cassandra_mod.info()

Return cassandra node info

CLI Example:

salt '*' cassandra.info
salt.modules.cassandra_mod.keyspaces()

Return existing keyspaces

CLI Example:

salt '*' cassandra.keyspaces
salt.modules.cassandra_mod.netstats()

Return netstats info

CLI Example:

salt '*' cassandra.netstats
salt.modules.cassandra_mod.ring()

Return cassandra ring info

CLI Example:

salt '*' cassandra.ring
salt.modules.cassandra_mod.tpstats()

Return tpstats info

CLI Example:

salt '*' cassandra.tpstats
salt.modules.cassandra_mod.version()

Return the cassandra version

CLI Example:

salt '*' cassandra.version