[sheepdog-users] Zookeeper and disk full

Valerio Pachera sirio81 at gmail.com
Sat Oct 4 11:43:36 CEST 2014


Beware that
"zookeeper keeps it's logs and snapshots forever. There is no
automatic delete or clean feature and if you don't add some code after
a Zookeeper install you will run out of disk space "

As explained in this article.
http://dougchang333.blogspot.it/2013/02/zookeeper-cleaning-logs-snapshots.html

and the maintenance article f zookeeper
https://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_maintenance

I noticed this problem in my testing cluster.

/var/lib/zookeeper/version-2# du -sh * | sort -rh
483M    snapshot.4e0000015c
450M    snapshot.500000004d
449M    snapshot.5100000004
351M    snapshot.4f00000050
27M     log.4e00000001
7.6M    log.4f00000001
0       snapshot.5300000052
0       snapshot.5300000002
0       snapshot.5200000046

I tried both articles command but I get an error (debian wheezy)

java -cp zookeeper.jar:log4j.jar:conf
org.apache.zookeeper.server.PurgeTxnLog /var/lib/zookeeper/
/var/lib/zookeeper/ -n 3
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/zookeeper/server/PurgeTxnLog
Caused by: java.lang.ClassNotFoundException:
org.apache.zookeeper.server.PurgeTxnLog
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class:
org.apache.zookeeper.server.PurgeTxnLog. Program will exit.

Did any of you success on that?



More information about the sheepdog-users mailing list