cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herbert Fischer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11659) Set a variable for cassandra.logdir instead hardcoding in bin/cassandra.
Date Wed, 27 Apr 2016 07:16:13 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259686#comment-15259686
] 

Herbert Fischer commented on CASSANDRA-11659:
---------------------------------------------

This setting could be moved to /etc/default/cassandra or /etc/cassandra/cassandra-env.sh,
in JVM_OPTS.

> Set a variable for cassandra.logdir instead hardcoding in bin/cassandra.
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-11659
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11659
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Ahmed AbouZaid
>            Priority: Minor
>              Labels: patch
>         Attachments: cassandra_logdir_path_v.01.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Hello,
> I think we need a way to overwrite value of "cassandra.logdir", that in case the user
needs to change logdir path.
> Since it's hard-coded inside "/usr/sbin/cassandra" (as "/var/log/cassandra" or  "$CASSANDRA_HOME/logs")
and also it's defined after includes, so it should be as variable, just like "cassandra.storagedir".
> Something like that:
> {code}
> cassandra_parms="$cassandra_parms -Dcassandra.logdir=$cassandra_logdir"
> cassandra_parms="$cassandra_parms -Dcassandra.storagedir=$cassandra_storagedir"
> {code}
> And as in Debian, we can set "/var/log/cassandra" as default value somewhere.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message