Zookeeper log files cleanup

Highlighted
Six 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.


Accepted Solutions
Forteen 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

-----------

All Replies
Forteen 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

-----------
Six 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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read