org.apache.hadoop.hbase.snapshot
Class SnapshotInfo
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.snapshot.SnapshotInfo
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
@InterfaceAudience.Public
@InterfaceStability.Evolving
public final class SnapshotInfo
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
Tool for dumping snapshot information.
- Table Descriptor
- Snapshot creation time, type, format version, ...
- List of hfiles and hlogs
- Stats about hfiles and logs sizes, percentage of shared with the source table, ...
Nested Class Summary |
static class |
SnapshotInfo.SnapshotStats
Statistics about the snapshot
How many store files and logs are in the archive
How many store files and logs are shared with the table
Total store files and logs size and shared amount
|
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
SnapshotInfo
public SnapshotInfo()
run
public int run(String[] args)
throws IOException,
InterruptedException
- Specified by:
run
in interface org.apache.hadoop.util.Tool
- Throws:
IOException
InterruptedException
getSnapshotStats
public static SnapshotInfo.SnapshotStats getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
HBaseProtos.SnapshotDescription snapshot)
throws IOException
- Returns the snapshot stats
- Parameters:
conf
- the Configuration
to usesnapshot
- HBaseProtos.SnapshotDescription
to get stats from
- Returns:
- the snapshot stats
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.