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

/etc/dse/cassandra/cassandra.yaml

Tarball installations + Installer-No Services installations

<installation_location>/resources/cassandra/conf/cassandra.yaml

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

/etc/dse/dse.yaml

Tarball installations + 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.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.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com