Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

stephen9834 avatar image
stephen9834 asked ·

Why can't agents find configuration files when overriding default locations?

I have changed below configuration after default Debian package installation

File cassandra.yaml

data directory path : /cassandra/dse-data/

File /etc/default/dse

CASSANDRA_CONF=/cassandra/dse-conf/cassandra

File /etc/dse/dse-env.sh

export CASSANDRA_LOG_DIR="/cassandra/dse-log/"

Also changed address.yaml for datastax-agent

stomp_interface: 192.168.120.217
stomp_port: 61620
use_ssl: 0
agent_log_location: /cassandra/dse-log/
cassandra_conf_location: /cassandra/dse-conf/cassandra/
cassandra_log_location: /cassandra/dse-log
backup_storage_dir: /cassandra/datastax-agent/cassandra_backup
tmp_dir: /cassandra/datastax-agent/tmp/
solr_log_location: /cassandra/dse-log

But when i am starting datastax agent getting this in agent.log

ERROR [async-dispatch-4] 2020-11-05 17:13:08,223 {:type :opsagent.environment.utils/does-not-exist, :details {:locations-checked [/cassandra/dse-conf/cassandra/resources/cassandra/conf/commitlog_archiving.properties], :filename commitlog_archiving.properties, :issues {/cassandra/dse-conf/cassandra/resources {:type :opsagent.environment.utils/does-not-exist, :message File or directory denoted by path /cassandra/dse-conf/cassandra/resources does not exist}}}} Error starting DynamicEnvironmentComponent

i have changed package installation , why agent searching above path due to this i am not able to get any data in opscenter for any node.

Please help me with steps how can i troubleshoot more or please check anything needed in config

opscenter
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

You can't override the configuration locations of package installations. The general idea with packages is that the configuration files, libraries, etc, are all installed in their designated locations.


Since you've overridden the standard location, OpsCenter assumes that DSE is installed using the binary tarball and expects to find the configuration file commitlog_archiving.properties in this path but it does not exist:

File or directory denoted by path /cassandra/dse-conf/cassandra/resources does not exist

If you want the ability to configure non-standard directory locations, we recommend that you use the tarball installation of DataStax Enterprise. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.