@InterfaceAudience.Public
@InterfaceStability.Evolving
public final class SnapshotInfo
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Constructor and Description |
|---|
SnapshotInfo() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> |
getSnapshotList(org.apache.hadoop.conf.Configuration conf)
Returns the list of available snapshots in the specified location
|
static Map<org.apache.hadoop.fs.Path,Integer> |
getSnapshotsFilesMap(org.apache.hadoop.conf.Configuration conf,
AtomicLong uniqueHFilesArchiveSize,
AtomicLong uniqueHFilesSize)
Returns the map of store files based on path for all snapshots
|
static org.apache.hadoop.hbase.snapshot.SnapshotInfo.SnapshotStats |
getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
Returns the snapshot stats
|
static org.apache.hadoop.hbase.snapshot.SnapshotInfo.SnapshotStats |
getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
Map<org.apache.hadoop.fs.Path,Integer> filesMap)
Returns the snapshot stats
|
static void |
main(String[] args) |
int |
run(String[] args) |
public int run(String[] args) throws IOException, InterruptedException
run in interface org.apache.hadoop.util.ToolIOExceptionInterruptedExceptionpublic static org.apache.hadoop.hbase.snapshot.SnapshotInfo.SnapshotStats getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
throws IOException
conf - the Configuration to usesnapshot - HBaseProtos.SnapshotDescription to get stats fromIOExceptionpublic static org.apache.hadoop.hbase.snapshot.SnapshotInfo.SnapshotStats getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
Map<org.apache.hadoop.fs.Path,Integer> filesMap)
throws IOException
conf - the Configuration to usesnapshot - HBaseProtos.SnapshotDescription to get stats fromfilesMap - Map store files map for all snapshots, it may be nullIOExceptionpublic static List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> getSnapshotList(org.apache.hadoop.conf.Configuration conf) throws IOException
conf - the Configuration to useIOExceptionpublic static Map<org.apache.hadoop.fs.Path,Integer> getSnapshotsFilesMap(org.apache.hadoop.conf.Configuration conf, AtomicLong uniqueHFilesArchiveSize, AtomicLong uniqueHFilesSize) throws IOException
conf - the Configuration to useuniqueHFilesArchiveSize - pass out the size for store files in archiveuniqueHFilesSize - pass out the size for store files sharedIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.