@InterfaceAudience.Private public class ReplicationProtbufUtil extends Object
Constructor and Description |
---|
ReplicationProtbufUtil() |
Modifier and Type | Method and Description |
---|---|
static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> |
buildReplicateWALEntryRequest(WAL.Entry[] entries)
Create a new ReplicateWALEntryRequest from a list of WAL entries
|
static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> |
buildReplicateWALEntryRequest(WAL.Entry[] entries,
byte[] encodedRegionName,
String replicationClusterId,
org.apache.hadoop.fs.Path sourceBaseNamespaceDir,
org.apache.hadoop.fs.Path sourceHFileArchiveDir)
Create a new ReplicateWALEntryRequest from a list of WAL entries
|
static void |
replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin,
WAL.Entry[] entries,
String replicationClusterId,
org.apache.hadoop.fs.Path sourceBaseNamespaceDir,
org.apache.hadoop.fs.Path sourceHFileArchiveDir)
A helper to replicate a list of WAL entries using admin protocol.
|
public static void replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin, WAL.Entry[] entries, String replicationClusterId, org.apache.hadoop.fs.Path sourceBaseNamespaceDir, org.apache.hadoop.fs.Path sourceHFileArchiveDir) throws IOException
admin
- Admin serviceentries
- Array of WAL entries to be replicatedreplicationClusterId
- Id which will uniquely identify source cluster FS client
configurations in the replication configuration directorysourceBaseNamespaceDir
- Path to source cluster base namespace directorysourceHFileArchiveDir
- Path to the source cluster hfile archive directoryIOException
public static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries) throws IOException
entries
- the WAL entries to be replicatedIOException
public static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries, byte[] encodedRegionName, String replicationClusterId, org.apache.hadoop.fs.Path sourceBaseNamespaceDir, org.apache.hadoop.fs.Path sourceHFileArchiveDir) throws IOException
entries
- the WAL entries to be replicatedencodedRegionName
- alternative region name to use if not nullreplicationClusterId
- Id which will uniquely identify source cluster FS client
configurations in the replication configuration directorysourceBaseNamespaceDir
- Path to source cluster base namespace directorysourceHFileArchiveDir
- Path to the source cluster hfile archive directoryIOException
Copyright © 2007–2019 Cloudera. All rights reserved.