public class PurgeTxnLog
extends java.lang.Object
| Constructor and Description |
|---|
PurgeTxnLog() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static void |
purge(java.io.File dataDir,
java.io.File snapDir,
int num)
purges the snapshot and logs keeping the last num snapshots
and the corresponding logs.
|
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.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
args - PurgeTxnLog dataLogDir
dataLogDir -- txn log directory
-n num (number of snapshots to keep)java.io.IOExceptionCopyright © 2020 The Apache Software Foundation