[
https://issues.apache.org/jira/browse/CASSANDRA-17773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576290#comment-17576290
]
Michael Semb Wever commented on CASSANDRA-17773:
------------------------------------------------
bq. it would be nice if we could harmonize the assignment of these environment
variables
Agree.
The problem is that setting JVM_OPTS a few lines lower in cassandra-env.sh
requires CASSANDRA_LOG_DIR
I wonder if the simple improvement we can offer here (along the lines [~claude]
you suggest) is to replace [these
lines|https://github.com/apache/cassandra/blob/trunk/debian/patches/cassandra_logdir_fix.diff#L6-L9]
with
{code}
if [ -z "$CASSANDRA_LOG_DIR" ]; then
- CASSANDRA_LOG_DIR=$CASSANDRA_HOME/logs
+ echo "CASSANDRA_LOG_DIR should have been set to a default value in
cassandra-env.sh, please update that file accordingly…"
fi
{code}
> Incorrect cassandra.logdir on Debian systems
> --------------------------------------------
>
> Key: CASSANDRA-17773
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17773
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Reporter: Eric Evans
> Priority: Normal
> Labels: lhf
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1-rc
>
>
> The Debian packaging patches bin/cassandra to use /var/log/cassandra for
> logs, it does so conditionally however, only if CASSANDRA_LOG_DIR is unset.
> This occurs _after_ cassandra-env.sh is sourced though, which also sets
> CASSANDRA_LOG_DIR if unset (to $CASSANDRA_HOME/logs). The result is that
> -Dcassandra.lodir is set to /usr/share/cassandra/logs on Debian systems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]