| Modifier and Type | Method and Description |
|---|---|
SnapshotProtos.SnapshotDescription |
SnapshotSentinel.getSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
long |
HMaster.restoreSnapshot(SnapshotProtos.SnapshotDescription snapshotDesc,
long nonceGroup,
long nonce,
boolean restoreAcl) |
| Constructor and Description |
|---|
CloneSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot) |
CloneSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot,
boolean restoreAcl)
Constructor
|
RestoreSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot) |
RestoreSnapshotProcedure(MasterProcedureEnv env,
TableDescriptor tableDescriptor,
SnapshotProtos.SnapshotDescription snapshot,
boolean restoreAcl)
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
protected SnapshotProtos.SnapshotDescription |
TakeSnapshotHandler.snapshot |
| Modifier and Type | Method and Description |
|---|---|
SnapshotProtos.SnapshotDescription |
TakeSnapshotHandler.getSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
List<SnapshotProtos.SnapshotDescription> |
SnapshotManager.getCompletedSnapshots()
Gets the list of all completed snapshots.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SnapshotManager.deleteSnapshot(SnapshotProtos.SnapshotDescription snapshot)
Delete the specified snapshot
|
boolean |
SnapshotManager.isSnapshotDone(SnapshotProtos.SnapshotDescription expected)
Check if the specified snapshot is done
|
long |
SnapshotManager.restoreOrCloneSnapshot(SnapshotProtos.SnapshotDescription reqSnapshot,
NonceKey nonceKey,
boolean restoreAcl)
Restore or Clone the specified snapshot
|
void |
SnapshotManager.takeSnapshot(SnapshotProtos.SnapshotDescription snapshot)
Take a snapshot based on the enabled/disabled state of the table.
|
| Constructor and Description |
|---|
DisabledTableSnapshotHandler(SnapshotProtos.SnapshotDescription snapshot,
MasterServices masterServices,
SnapshotManager snapshotManager) |
EnabledTableSnapshotHandler(SnapshotProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager) |
MasterSnapshotVerifier(MasterServices services,
SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.fs.Path rootDir) |
TakeSnapshotHandler(SnapshotProtos.SnapshotDescription snapshot,
MasterServices masterServices,
SnapshotManager snapshotManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
HRegion.addRegionToSnapshot(SnapshotProtos.SnapshotDescription desc,
ForeignExceptionSnare exnSnare)
Complete taking the snapshot on the region.
|
| Modifier and Type | Method and Description |
|---|---|
Subprocedure |
RegionServerSnapshotManager.buildSubprocedure(SnapshotProtos.SnapshotDescription snapshot)
If in a running state, creates the specified subprocedure for handling an online snapshot.
|
| Constructor and Description |
|---|
FlushSnapshotSubprocedure(ProcedureMember member,
ForeignExceptionDispatcher errorListener,
long wakeFrequency,
long timeout,
List<HRegion> regions,
SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.hbase.regionserver.snapshot.RegionServerSnapshotManager.SnapshotSubprocedurePool taskManager) |
RegionSnapshotTask(HRegion region,
SnapshotProtos.SnapshotDescription snapshotDesc,
boolean skipFlush,
ForeignExceptionDispatcher monitor) |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotProtos.SnapshotDescription |
ProtobufUtil.createHBaseProtosSnapshotDesc(SnapshotDescription snapshotDesc)
Convert from
SnapshotDescription to
HBaseProtos.SnapshotDescription |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotDescription |
ProtobufUtil.createSnapshotDesc(SnapshotProtos.SnapshotDescription snapshotDesc)
Convert from
HBaseProtos.SnapshotDescription to
SnapshotDescription |
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hbase.thirdparty.com.google.protobuf.Parser<SnapshotProtos.SnapshotDescription> |
SnapshotProtos.SnapshotDescription.PARSER
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.Builder.build() |
SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.Builder.buildPartial() |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.getDefaultInstance() |
SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.getDefaultInstanceForType() |
SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.Builder.getDefaultInstanceForType() |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.CloneSnapshotStateDataOrBuilder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.CloneSnapshotStateData.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.CloneSnapshotStateData.Builder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.RestoreSnapshotStateDataOrBuilder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.RestoreSnapshotStateData.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProcedureProtos.RestoreSnapshotStateData.Builder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProtos.SnapshotRequestOrBuilder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.SnapshotRequest.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.SnapshotRequest.Builder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.DeleteSnapshotRequestOrBuilder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.DeleteSnapshotRequest.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.DeleteSnapshotRequest.Builder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.RestoreSnapshotRequestOrBuilder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.RestoreSnapshotRequest.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.RestoreSnapshotRequest.Builder.getSnapshot()
required .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneRequestOrBuilder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneRequest.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneRequest.Builder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneResponseOrBuilder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneResponse.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsSnapshotDoneResponse.Builder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 2; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsRestoreSnapshotDoneRequestOrBuilder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsRestoreSnapshotDoneRequest.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.IsRestoreSnapshotDoneRequest.Builder.getSnapshot()
optional .hbase.pb.SnapshotDescription snapshot = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.GetCompletedSnapshotsResponseOrBuilder.getSnapshots(int index)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.GetCompletedSnapshotsResponse.getSnapshots(int index)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
SnapshotProtos.SnapshotDescription |
MasterProtos.GetCompletedSnapshotsResponse.Builder.getSnapshots(int index)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseDelimitedFrom(InputStream input) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseDelimitedFrom(InputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(byte[] data) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(byte[] data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(ByteBuffer data) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(ByteBuffer data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(org.apache.hbase.thirdparty.com.google.protobuf.ByteString data) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(org.apache.hbase.thirdparty.com.google.protobuf.ByteString data,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(InputStream input) |
static SnapshotProtos.SnapshotDescription |
SnapshotProtos.SnapshotDescription.parseFrom(InputStream input,
org.apache.hbase.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hbase.thirdparty.com.google.protobuf.Parser<SnapshotProtos.SnapshotDescription> |
SnapshotProtos.SnapshotDescription.getParserForType() |
List<SnapshotProtos.SnapshotDescription> |
MasterProtos.GetCompletedSnapshotsResponseOrBuilder.getSnapshotsList()
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
List<SnapshotProtos.SnapshotDescription> |
MasterProtos.GetCompletedSnapshotsResponse.getSnapshotsList()
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
List<SnapshotProtos.SnapshotDescription> |
MasterProtos.GetCompletedSnapshotsResponse.Builder.getSnapshotsList()
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
static org.apache.hbase.thirdparty.com.google.protobuf.Parser<SnapshotProtos.SnapshotDescription> |
SnapshotProtos.SnapshotDescription.parser() |
| Modifier and Type | Method and Description |
|---|---|
MasterProtos.GetCompletedSnapshotsResponse.Builder |
MasterProtos.GetCompletedSnapshotsResponse.Builder.addSnapshots(int index,
SnapshotProtos.SnapshotDescription value)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
MasterProtos.GetCompletedSnapshotsResponse.Builder |
MasterProtos.GetCompletedSnapshotsResponse.Builder.addSnapshots(SnapshotProtos.SnapshotDescription value)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
SnapshotProtos.SnapshotDescription.Builder |
SnapshotProtos.SnapshotDescription.Builder.mergeFrom(SnapshotProtos.SnapshotDescription other) |
MasterProcedureProtos.CloneSnapshotStateData.Builder |
MasterProcedureProtos.CloneSnapshotStateData.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProcedureProtos.RestoreSnapshotStateData.Builder |
MasterProcedureProtos.RestoreSnapshotStateData.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProtos.SnapshotRequest.Builder |
MasterProtos.SnapshotRequest.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.DeleteSnapshotRequest.Builder |
MasterProtos.DeleteSnapshotRequest.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.RestoreSnapshotRequest.Builder |
MasterProtos.RestoreSnapshotRequest.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.IsSnapshotDoneRequest.Builder |
MasterProtos.IsSnapshotDoneRequest.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.IsSnapshotDoneResponse.Builder |
MasterProtos.IsSnapshotDoneResponse.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProtos.IsRestoreSnapshotDoneRequest.Builder |
MasterProtos.IsRestoreSnapshotDoneRequest.Builder.mergeSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 1; |
static SnapshotProtos.SnapshotDescription.Builder |
SnapshotProtos.SnapshotDescription.newBuilder(SnapshotProtos.SnapshotDescription prototype) |
MasterProcedureProtos.CloneSnapshotStateData.Builder |
MasterProcedureProtos.CloneSnapshotStateData.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProcedureProtos.RestoreSnapshotStateData.Builder |
MasterProcedureProtos.RestoreSnapshotStateData.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProtos.SnapshotRequest.Builder |
MasterProtos.SnapshotRequest.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.DeleteSnapshotRequest.Builder |
MasterProtos.DeleteSnapshotRequest.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.RestoreSnapshotRequest.Builder |
MasterProtos.RestoreSnapshotRequest.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
required .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.IsSnapshotDoneRequest.Builder |
MasterProtos.IsSnapshotDoneRequest.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.IsSnapshotDoneResponse.Builder |
MasterProtos.IsSnapshotDoneResponse.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 2; |
MasterProtos.IsRestoreSnapshotDoneRequest.Builder |
MasterProtos.IsRestoreSnapshotDoneRequest.Builder.setSnapshot(SnapshotProtos.SnapshotDescription value)
optional .hbase.pb.SnapshotDescription snapshot = 1; |
MasterProtos.GetCompletedSnapshotsResponse.Builder |
MasterProtos.GetCompletedSnapshotsResponse.Builder.setSnapshots(int index,
SnapshotProtos.SnapshotDescription value)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
| Modifier and Type | Method and Description |
|---|---|
MasterProtos.GetCompletedSnapshotsResponse.Builder |
MasterProtos.GetCompletedSnapshotsResponse.Builder.addAllSnapshots(Iterable<? extends SnapshotProtos.SnapshotDescription> values)
repeated .hbase.pb.SnapshotDescription snapshots = 1; |
| Modifier and Type | Method and Description |
|---|---|
SnapshotProtos.SnapshotDescription |
SnapshotManifest.getSnapshotDescription()
Get the SnapshotDescription
|
static SnapshotProtos.SnapshotDescription |
SnapshotDescriptionUtils.readSnapshotInfo(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path snapshotDir)
Read in the
HBaseProtos.SnapshotDescription stored for the snapshot in the passed directory |
static SnapshotProtos.SnapshotDescription |
SnapshotDescriptionUtils.validate(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.conf.Configuration conf)
Convert the passed snapshot description into a 'full' snapshot description based on default
parameters, if none have been supplied.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ClientSnapshotDescriptionUtils.assertSnapshotRequestIsValid(SnapshotProtos.SnapshotDescription snapshot)
Check to make sure that the description of the snapshot requested is valid
|
static void |
SnapshotDescriptionUtils.completeSnapshot(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.fs.Path rootdir,
org.apache.hadoop.fs.Path workingDir,
org.apache.hadoop.fs.FileSystem fs)
Move the finished snapshot to its final, publicly visible directory - this marks the snapshot
as 'complete'.
|
static SnapshotManifest |
SnapshotManifest.create(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
SnapshotProtos.SnapshotDescription desc,
ForeignExceptionSnare monitor)
Return a SnapshotManifest instance, used for writing a snapshot.
|
static org.apache.hadoop.fs.Path |
SnapshotDescriptionUtils.getCompletedSnapshotDir(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.fs.Path rootDir)
Get the directory for a specified snapshot.
|
static SnapshotInfo.SnapshotStats |
SnapshotInfo.getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
SnapshotProtos.SnapshotDescription snapshotDesc,
Map<org.apache.hadoop.fs.Path,Integer> filesMap)
Returns the snapshot stats
|
static org.apache.hadoop.fs.Path |
SnapshotDescriptionUtils.getWorkingSnapshotDir(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.fs.Path rootDir)
Get the directory to build a snapshot, before it is finalized
|
static SnapshotManifest |
SnapshotManifest.open(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
SnapshotProtos.SnapshotDescription desc)
Return a SnapshotManifest instance with the information already loaded in-memory.
|
static void |
RestoreSnapshotHelper.restoreSnapshotAcl(SnapshotProtos.SnapshotDescription snapshot,
TableName newTableName,
org.apache.hadoop.conf.Configuration conf) |
static String |
ClientSnapshotDescriptionUtils.toString(SnapshotProtos.SnapshotDescription ssd)
Returns a single line (no \n) representation of snapshot metadata.
|
static SnapshotProtos.SnapshotDescription |
SnapshotDescriptionUtils.validate(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.conf.Configuration conf)
Convert the passed snapshot description into a 'full' snapshot description based on default
parameters, if none have been supplied.
|
static void |
SnapshotReferenceUtil.verifySnapshot(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path snapshotDir,
SnapshotProtos.SnapshotDescription snapshotDesc)
Verify the validity of the snapshot
|
static void |
SnapshotReferenceUtil.visitReferencedFiles(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path snapshotDir,
SnapshotProtos.SnapshotDescription desc,
SnapshotReferenceUtil.SnapshotVisitor visitor)
Iterate over the snapshot store files, restored.edits and logs
|
static void |
SnapshotDescriptionUtils.writeSnapshotInfo(SnapshotProtos.SnapshotDescription snapshot,
org.apache.hadoop.fs.Path workingDir,
org.apache.hadoop.fs.FileSystem fs)
Write the snapshot description into the working directory of a snapshot
|
Copyright © 2007–2019 Cloudera. All rights reserved.