Since I donβt hear the fix through Zookeeper, this was a difficult decision:
COUNT=6 DATADIR=/tmp/zookeeper/version-2/ ls -1drt ${DATADIR}/* | head --lines=-${COUNT} | xargs sudo rm -f
Must be run once a day from a cron or jenkins job to prevent zookeeper from exploding.
user48956
source share