cluster_check and yaml_diff tools
The cluster_check and yaml_diff tools check the differences between cassandra.yaml or dse.yaml files.
This check is particularly useful during upgrades.
The location of the cassandra.yaml file depends on the type of installation:
-
Package installations and Installer-Services installations:
/etc/dse/cassandra/cassandra.yaml -
Tarball installations and Installer-No Services installations:
<installation_location>/resources/cassandra/conf/cassandra.yaml
The location of the dse.yaml file depends on the type of installation:
-
Package installations and Installer-Services installations:
/etc/dse/dse.yaml -
Tarball installations and Installer-No Services installations:
<installation_location>/resources/dse/conf/dse.yaml
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.yamlfiles. -
To check differences between YAML files:
cd /usr/share/dse/tools/yamls ./yaml_diff path/to/cassandra.yaml path/to/cassandra.yaml.newThe 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
nodelistparameter is optional since the script checks for the list of IP addresses contained innodetool status. The format for thenodelistfile is one address per line.