[
https://issues.apache.org/jira/browse/CASSANDRA-16199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337629#comment-17337629
]
Brian Houser commented on CASSANDRA-16199:
------------------------------------------
I've looked into this, and I've added the cassandra.logdir property to the
nodetool as it makes it consistent, and that alone has value.
A few points however....
The nodetool already calls cassandra_env.sh which handles the environment
variable $CASSANDRA_LOG_DIR, including setting the environment variable if its
not set, this is true in 4.0 and 3.11.
see [https://github.com/apache/cassandra/blob/cassandra-3.11/bin/nodetool#L59]
The nodetool uses its a unique log config called logback-tools.xml (and not
logback.xml) which doesn't seem to mention this property...
[https://github.com/apache/cassandra/blob/cassandra-3.11/bin/nodetool#L111]
> cassandra.logdir undefined when CASSANDRA_LOG_DIR
> -------------------------------------------------
>
> Key: CASSANDRA-16199
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16199
> Project: Cassandra
> Issue Type: Bug
> Components: Local/Config
> Reporter: Cyril Scetbon
> Assignee: Brian Houser
> Priority: Normal
> Fix For: 3.11.x, 4.0.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When ${cassandra.logdir} is used in logback.xml nodetool doesn’t use the env
> variable CASSANDRA_LOG_DIR or the default value. and complains
> {noformat}
> 03:07:27,387 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] - Failed to create
> parent directories for [/cassandra.logdir_IS_UNDEFINED/debug.log]03:07:27,387
> |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] - Failed
> to create parent directories for
> [/cassandra.logdir_IS_UNDEFINED/debug.log]03:07:27,388 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[DEBUGLOG] -
> openFile(cassandra.logdir_IS_UNDEFINED/debug.log,true) call failed.
> java.io.FileNotFoundException: cassandra.logdir_IS_UNDEFINED/debug.log (No
> such file or directory) at java.io.FileNotFoundException:
> cassandra.logdir_IS_UNDEFINED/debug.log (No such file or directory)
> ...{noformat}
> It’s different for cassandra for instance
> [https://github.com/apache/cassandra/blob/324267b3c0676ad31bd4f2fac0e2e673a9257a37/bin/cassandra#L186].
> I feel like it should be added to
> [https://github.com/apache/cassandra/blob/06209037ea56b5a2a49615a99f1542d6ea1b2947/bin/nodetool],
> or that it should call cassandra-env.sh
>
> Seen on 3.11 and 4.0-beta1
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]