@InterfaceAudience.Public @InterfaceStability.Evolving @Deprecated public final class SnapshotInfo extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
| 限定符和类型 | 类和说明 |
|---|---|
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
|
| 构造器和说明 |
|---|
SnapshotInfo()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 SnapshotInfo.SnapshotStats |
getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
已过时。
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)
已过时。
Returns the snapshot stats
|
static void |
main(String[] args)
已过时。
|
int |
run(String[] args)
已过时。
|
public int run(String[] args) throws IOException, InterruptedException
run 在接口中 org.apache.hadoop.util.ToolIOExceptionInterruptedExceptionpublic 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 fromIOExceptionpublic 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 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.