Self-extracting installer used to install cassandra-diagnostics.
This installer should run on any fairly modern linux distribution.
Requirements for running installer script:
- bash 4.x
- GNU Awk 4.x
- getopt, enhanced version
- readline
- wget
- mktemp
Requirements for building installer script:
- cat
- tar
- gzip
First checkout bash-installer and put it on Cassandra node where you want to install Cassandra diagnostics.
Prepare cassandra-diagnostics.yml (most basic configuration file can be seen on this link and some examples are in core module readme.
Run cassandra-diagnostics-installer.sh shell script with following switches:
- -c, --cassandra-conf-dir - location of Cassandra configuration directory
- -l, --cassandra-lib-dir - location of Cassandra library directory
- -v, --cassandra-version - installed Cassandra version number (e.g 3.0.12, 2.1.4, etc.)
- -V, --cassandra-diagnostics-version - desired version of cassandra-diagnostics
- -C, --cassandra-diagnostics-conf-file - location of cassandra-diagnostics configuration (YAML) file
- -h, --help - show help message
All parameters except "-h, --help" are mandatory.
When invoked with all of mandatory parameters, installer will extract itself to /tmp/cassandra-diagnostics-installer.XXXXXX (XXXXXX is random alphanumeric string), and execute main.sh script, which will carry on the installation.
Here is example of command sudo ./cassandra-diagnostics-installer.sh -c /etc/cassandra/ -l /usr/share/cassandra/lib/ -v 3.0.12 -V 1.4.6 -C ./cassandra-diagnostics.yml.
Run build-installer.sh. It will tar and gzip scripts from installer directory, and append it at the end of installer-runner.sh, producing cassandra-diagnostics-installer.sh script.