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.
Where is the cassandra.yaml file?
The location of the cassandra.yaml file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Where is the dse.yaml file?
The location of the dse.yaml file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
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.