@InterfaceAudience.Public @InterfaceStability.Evolving @Deprecated public final class SnapshotInfo extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotInfo.SnapshotStats
Deprecated.
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
|
Constructor and Description |
---|
SnapshotInfo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> |
getSnapshotList(org.apache.hadoop.conf.Configuration conf)
Deprecated.
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)
Deprecated.
Returns the map of store files based on path for all snapshots
|
static SnapshotInfo.SnapshotStats |
getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
Deprecated.
Returns the snapshot stats
|
static 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)
Deprecated.
Returns the snapshot stats
|
static void |
main(String[] args)
Deprecated.
|
int |
run(String[] args)
Deprecated.
|
public int run(String[] args) throws IOException, InterruptedException
run
in interface org.apache.hadoop.util.Tool
IOException
InterruptedException
public static 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 fromIOException
public static 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 nullIOException
public static List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> getSnapshotList(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- the Configuration
to useIOException
public 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 sharedIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.