public class PurgeTxnLog extends Object
| Constructor and Description |
|---|
PurgeTxnLog() |
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 - PurgeTxnLog dataLogDir
dataLogDir -- txn log directory
-n num (number of snapshots to keep)IOExceptionCopyright © 2014 The Apache Software Foundation