public class PurgeTxnLog
extends java.lang.Object
Constructor and Description |
---|
PurgeTxnLog() |
public static void purge(java.io.File dataDir, java.io.File snapDir, int num) throws java.io.IOException
dataDir
- the dir that has the logssnapDir
- the dir that has the snapshotsnum
- the number of snapshots to keepjava.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
args
- dataLogDir [snapDir] -n count
dataLogDir -- path to the txn log directory
snapDir -- path to the snapshot directory
count -- the number of old snaps/logs you want to keep, value should be greater than or equal to 3java.io.IOException
Copyright © 2019 The Apache Software Foundation