@InterfaceAudience.Private public final class ReplicationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig,
org.apache.hadoop.hbase.TableName tableName)
Deprecated.
Will be removed in HBase 3.
Use
ReplicationPeerConfig.needToReplicate(TableName) instead. |
static int |
getAdaptiveTimeout(int initialValue,
int retries)
Get the adaptive timeout value when performing a retry
|
static org.apache.hadoop.conf.Configuration |
getPeerClusterConfiguration(org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig,
org.apache.hadoop.conf.Configuration baseConf) |
static boolean |
isNamespacesAndTableCFsEqual(org.apache.hadoop.hbase.replication.ReplicationPeerConfig rpc1,
org.apache.hadoop.hbase.replication.ReplicationPeerConfig rpc2) |
static boolean |
isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c) |
static void |
removeAllQueues(ReplicationQueueStorage queueStorage,
String peerId) |
public static org.apache.hadoop.conf.Configuration getPeerClusterConfiguration(org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig,
org.apache.hadoop.conf.Configuration baseConf)
throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic static void removeAllQueues(ReplicationQueueStorage queueStorage, String peerId) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic static boolean isNamespacesAndTableCFsEqual(org.apache.hadoop.hbase.replication.ReplicationPeerConfig rpc1,
org.apache.hadoop.hbase.replication.ReplicationPeerConfig rpc2)
public static boolean isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c)
c - Configuration to look at@Deprecated public static boolean contains(org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig, org.apache.hadoop.hbase.TableName tableName)
ReplicationPeerConfig.needToReplicate(TableName) instead.peerConfig - configuration for the replication peer clustertableName - name of the tablepublic static int getAdaptiveTimeout(int initialValue,
int retries)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.