cluster_check and yaml_diff tools

Using the cluster_check and yaml_diff tools to check the differences between cassandra.yaml or dse.yaml files.

The cluster_check and yaml_diff tools check the differences between cassandra.yaml or dse.yaml files. This check is particularly useful during upgrades.

Prerequisites

PyYAML must be installed. To install:

pip install pyyaml
$ pip install termcolor ## Optional. Install for colored output.

Procedure

These examples check the differences between cassandra.yaml files.

  • To check differences between YAML files:
    cd /usr/share/dse/tools/yamls
    $ ./yaml_diff path/to/cassandra.yaml path/to/cassandra.yaml.new

    The Missing Settings section of the report lists both missing and deprecated settings.

  • To check the differences between each node's YAML in a datacenter:

    For ease of use, use password-less SSH access from the current node to all other nodes.

    cd /usr/share/dse/tools/yamls
    $ ./cluster_check /path/to/cassandra.yaml [/path/to/nodelist]

    The nodelist parameter is optional since the script checks for the list of IP addresses contained in nodetool status. The format for the nodelist file is one address per line.