I am running ZooKeeper latest stable 3.8.4 release. I installed it in /usr/local/zookeeper/
and I configured /usr/local/zookeeper/conf/zoo.cfg
to specify
dataDir=/var/zookeeper
The logging configuration in /usr/local/zookeeper/conf/logback.xml
is
<property name="zookeeper.log.dir" value="logs" />
<property name="zookeeper.log.file" value="zookeeper.log" />
With these definitions I expected that all logs files will be in /var/zookeeper/logs
.
The ZooKeeper service indeed seems to do that. However, ZK CLI does not. Running /usr/local/zookeeper/bin/zkCli.sh
creates a logs
directory in any directory from which it is invoked.
Is that the expected behavior?
Is that healthy that log files are not be consolidated?
After noticing that I added CLASSPATH=$CLASSPATH:/usr/local/zookeeper/conf/
but it did not change the behavior. I think that this is a requirement of LOGback.