This is a basic Python based tool that merges two Apache Cassandra YAML config files. It uses the concept of symmetric difference in sets to merge the files. The tool will also detect whether both files are identical (e.g. config files contain identical keys or key/value property pairs).
- Python 2.7 or higher
- PyYAML 3.10
- Apache Cassandra YAML configuration files
The recommended way of installing this tool is to use virtualenv to create an isolated Python environment.
- Assuming pip is installed - install the required dependencies -
pip install -r cassandra_config/requirements.txt
- Run driver.py in cassandra_config - this will display a helper detailing how to run the application
- To merge two Cassandra config files run the following:
driver.py --current-yaml-config cassandra_current.yaml --new-yaml-config cassandra_new.yaml --merged-yaml-config cassandra_merged.yaml