public class PurgeTxnLog extends Object
| Constructor and Description | 
|---|
| PurgeTxnLog() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | main(String[] args) | 
| static void | purge(File dataDir,
     File snapDir,
     int num)Purges the snapshot and logs keeping the last num snapshots and the
 corresponding logs. | 
public static void purge(File dataDir, File snapDir, int num) throws IOException
dataDir - the dir that has the logssnapDir - the dir that has the snapshotsnum - the number of snapshots to keepIOExceptionpublic static void main(String[] args) throws 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 3IOExceptionCopyright © 2016 The Apache Software Foundation