At the first, you need to know the location of zkCleanup.sh file. After that, we should setup a crontab as bellow:
1 |
0 0 * * * /usr/lib/zookeeper/bin/zkCleanup.sh -n 3 |
In there, -n 3 is the number of the snapshots you need to keep.
At the first, you need to know the location of zkCleanup.sh file. After that, we should setup a crontab as bellow:
1 |
0 0 * * * /usr/lib/zookeeper/bin/zkCleanup.sh -n 3 |
In there, -n 3 is the number of the snapshots you need to keep.