Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Zookeeper cleaner upper.
#!/usr/bin/env bash
# Useful reference and documentation material:
set -o errexit
set -o pipefail
set -o nounset
cd /usr/share/zookeeper
. bin/
java -cp zookeeper-3.4.9.jar:$(find lib -name '*.jar' | tr '\n' ':'):conf org.apache.zookeeper.server.PurgeTxnLog /opt/zookeeper/log /opt/zookeeper/data -n 3

jaytaylor commented Nov 30, 2017


Zookeeper 3.4.x and newer include autopurge functionality. Should work better than this script ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment