evertrue / zookeeper-cookbook

Chef cookbook for installing and managing Zookeeper.
https://supermarket.chef.io/cookbooks/zookeeper
Apache License 2.0
81 stars 117 forks source link

set up log purging #14

Closed mwhooker closed 11 years ago

mwhooker commented 11 years ago

either set up log4j.properties to correctly trim the logs or periodically run

sudo -u zookeeper java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /opt/zookeeper/zookeeper-3.4.5/bin/../build/classes:/opt/zookeeper/zookeeper-3.4.5/bin/../build/lib/*.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../lib/slf4j-api-1.6.1.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../lib/netty-3.2.2.Final.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../lib/log4j-1.2.15.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../lib/jline-0.9.94.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../zookeeper-3.4.5.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../src/java/lib/*.jar:/opt/zookeeper/zookeeper-3.4.5/bin/../conf: org.apache.zookeeper.server.PurgeTxnLog /mnt/zookeeper_transactions/ /mnt/zookeeper_snapshots/ -n 5
mwhooker commented 11 years ago

seems to be a bug that occurs when transactions and snapshots are stored in different directories

https://github.com/Netflix/exhibitor/issues/131