Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to clean up files in Zookeeper Directory

avatar
Expert Contributor

I am unable to restart Zookeeper on one of the nodes in the cluster due to the mount where Zookeeper Directory is pointing to is full. So how can i safely remove/archive some of the files that are under zookeeper directory? and also what kind of data does Zookeeper records? Is it safe to remove them on one particular Zookeeper node while the cluster is up and running? please advise

I see bunch of files in the following format

1. log.170003cfd4

2. snapshot.170003cfd4

1 ACCEPTED SOLUTION

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
2 REPLIES 2

avatar
Master Mentor

@rbalam for regular maintenance follow this guide this will free up space in your zookeeper dirs. in case you don't care about data, you can login to zookeeper cli and rmr /path. You will need to stop zookeeper cluster for this. Do this as your last option, it's not a safe thing to do.

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login