You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Jun Rao <ju...@gmail.com> on 2011/04/26 02:22:53 UTC

PurgeTxnLog

Hi,

We got a lot of log data and snapshots accumlated in ZK (version 3.3.3). I
tried to run the following command to clean things up. However, nothing gets
deleted. Did I do anything wrong? Thanks,

 java -cp ../lib/zookeeper-3.3.3.jar:../lib/log4j-1.2.15.jar:conf
org.apache.zookeeper.server.PurgeTxnLog /export/content/zookeeper/i002/data
/export/content/zookeeper/i002/data/version-2 -n 6

Jun

Re: PurgeTxnLog

Posted by Mahadev Konar <ma...@apache.org>.
Jun,
 Please open a jira on it. Ill post a patch for 3.4.

thanks
mahadev

On Mon, Apr 25, 2011 at 5:43 PM, Jun Rao <ju...@gmail.com> wrote:
> OK, figure this out. It seems that the utility only takes relative path, not
> the absolute path.
>
> Jun
>
> On Mon, Apr 25, 2011 at 5:22 PM, Jun Rao <ju...@gmail.com> wrote:
>
>> Hi,
>>
>> We got a lot of log data and snapshots accumlated in ZK (version 3.3.3). I
>> tried to run the following command to clean things up. However, nothing gets
>> deleted. Did I do anything wrong? Thanks,
>>
>>  java -cp ../lib/zookeeper-3.3.3.jar:../lib/log4j-1.2.15.jar:conf
>> org.apache.zookeeper.server.PurgeTxnLog /export/content/zookeeper/i002/data
>> /export/content/zookeeper/i002/data/version-2 -n 6
>>
>> Jun
>>
>



-- 
thanks
mahadev
@mahadevkonar

Re: PurgeTxnLog

Posted by Jun Rao <ju...@gmail.com>.
OK, figure this out. It seems that the utility only takes relative path, not
the absolute path.

Jun

On Mon, Apr 25, 2011 at 5:22 PM, Jun Rao <ju...@gmail.com> wrote:

> Hi,
>
> We got a lot of log data and snapshots accumlated in ZK (version 3.3.3). I
> tried to run the following command to clean things up. However, nothing gets
> deleted. Did I do anything wrong? Thanks,
>
>  java -cp ../lib/zookeeper-3.3.3.jar:../lib/log4j-1.2.15.jar:conf
> org.apache.zookeeper.server.PurgeTxnLog /export/content/zookeeper/i002/data
> /export/content/zookeeper/i002/data/version-2 -n 6
>
> Jun
>