Hi,
A user was asking to have the installation of Cassandra & Elastic on another directory instead of the default /etc/...
I was wondering if this is possible on Linux Debian to specify an installation directory and if it's allowed to do this (way to go) to make sure the workflow won't be affected?
Thanks!
Gilles
Everything is possible in Linux OS, but it won't be just a few clicks.
What is the intention behind installing the software under a custom directory? Typically /data storage is mounted to a separate disk or mount point, but not the entire software.
Depending on how debian packages are created for Elasticsearch and Cassandra, you may be able to use the option --instdir under dpkg command. Please see details at dpkg(1) — dpkg — Debian wheezy — Debian Manpages .
If not, one may need to download the source code to make changes, compile and build packages to install manually.
As far as I know, DataMiner doesn't bother about how the database is installed as long as it's accessible.
Thanks.
Hi Gilles,
You can do the installation from the binary tarball. Basically where you extract the tarball is where it will be installed. A big disadvantage of this is that you might need to perform some manual actions to ensure the right permissions on your folders and that you need to remember the location where to find everything in case of troubleshooting (e.g. finding log files). Starting Cassandra or running nodetool commands are also slightly different, so you need to take this into account.
Please see the following documentation for pointing config files location to a custom directory.
Cassandra: https://docs.datastax.com/en/archived/cassandra/2.0/cassandra/tools/toolsCUtility_t.html
Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html