Five Stars

Zookeeper log files cleanup

Hi,

 

In the runtime version 6.2.1 the zookeeper log files folder keeps on growing so I added the config tags (.../conf/zoo.cfg):

autopurge.snapRetainCount=4
autopurge.purgeInterval=1

And restarted the runtime, my hope was that zookeeper would also clean the old log files.This is not the case and the cleanup script is sh-shell based and the server is Windows based in our case. Anybody a good pointer to a script which I can run to clean the old files? Or can I just remove them when I shutdown the runtime?

 

Kind regards.

  • Talend ESB
  • Talend Runtime
1 ACCEPTED SOLUTION

Accepted Solutions
Seven Stars

Re: Zookeeper log files cleanup

I do not know about bash from Microsoft for windows server (same as they make for Windows 10), but cygwin  do this work for You

 

C:\TOS_ESB\Runtime_ESBSE_6.3\zookeeper\bin>sh zkCleanup.sh c:\tmp\zookeeper\ -n 3

 

Screen Shot 2017-05-10 at 11.19.59 AM.png

-----------
2 REPLIES
Seven Stars

Re: Zookeeper log files cleanup

I do not know about bash from Microsoft for windows server (same as they make for Windows 10), but cygwin  do this work for You

 

C:\TOS_ESB\Runtime_ESBSE_6.3\zookeeper\bin>sh zkCleanup.sh c:\tmp\zookeeper\ -n 3

 

Screen Shot 2017-05-10 at 11.19.59 AM.png

-----------
Five Stars

Re: Zookeeper log files cleanup

Nice way around it, I forgot about cygwin.

I solved the problem on the test server for now, by stopping the Runtime and removing the content of the log folder. So far no issues.