com.baidubce.services.tablestoragehbaseclient.hbase
Class TablestorageAdmin
java.lang.Object
com.baidubce.services.tablestoragehbaseclient.hbase.TablestorageAdmin
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.hbase.Abortable, org.apache.hadoop.hbase.client.Admin
public class TablestorageAdmin
- extends Object
- implements org.apache.hadoop.hbase.client.Admin
TablestorageAdmin derived from hbase.client.Admin
|
Method Summary |
void |
abort(String why,
Throwable e)
|
boolean |
abortProcedure(long procId,
boolean mayInterruptIfRunning)
|
Future<Boolean> |
abortProcedureAsync(long procId,
boolean mayInterruptIfRunning)
|
void |
addColumn(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HColumnDescriptor column)
|
void |
assign(byte[] regionName)
|
boolean |
balancer()
|
void |
cloneSnapshot(byte[] snapshotName,
org.apache.hadoop.hbase.TableName tableName)
|
void |
cloneSnapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName)
|
void |
close()
|
void |
closeRegion(byte[] regionname,
String serverName)
|
void |
closeRegion(org.apache.hadoop.hbase.ServerName sn,
org.apache.hadoop.hbase.HRegionInfo hri)
|
void |
closeRegion(String regionname,
String serverName)
|
boolean |
closeRegionWithEncodedRegionName(String encodedRegionName,
String serverName)
|
void |
compact(org.apache.hadoop.hbase.TableName tableName)
|
void |
compact(org.apache.hadoop.hbase.TableName tableName,
byte[] columnFamily)
|
void |
compactRegion(byte[] regionName)
|
void |
compactRegion(byte[] regionName,
byte[] columnFamily)
|
void |
compactRegionServer(org.apache.hadoop.hbase.ServerName sn,
boolean major)
|
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService()
|
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService(org.apache.hadoop.hbase.ServerName sn)
|
void |
createNamespace(org.apache.hadoop.hbase.NamespaceDescriptor descriptor)
|
void |
createTable(org.apache.hadoop.hbase.HTableDescriptor desc)
|
void |
createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[][] splitKeys)
|
void |
createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[] startKey,
byte[] endKey,
int numRegions)
|
void |
createTableAsync(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[][] splitKeys)
|
void |
deleteColumn(org.apache.hadoop.hbase.TableName tableName,
byte[] columnName)
|
void |
deleteNamespace(String name)
|
void |
deleteSnapshot(byte[] snapshotName)
|
void |
deleteSnapshot(String snapshotName)
|
void |
deleteSnapshots(Pattern pattern)
|
void |
deleteSnapshots(String regex)
|
void |
deleteTable(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
deleteTables(Pattern pattern)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
deleteTables(String regex)
|
void |
disableTable(org.apache.hadoop.hbase.TableName tableName)
|
void |
disableTableAsync(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
disableTables(Pattern pattern)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
disableTables(String regex)
|
boolean |
enableCatalogJanitor(boolean enable)
|
void |
enableTable(org.apache.hadoop.hbase.TableName tableName)
|
void |
enableTableAsync(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
enableTables(Pattern pattern)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
enableTables(String regex)
|
void |
execProcedure(String signature,
String instance,
Map<String,String> props)
|
byte[] |
execProcedureWithRet(String signature,
String instance,
Map<String,String> props)
|
void |
flush(org.apache.hadoop.hbase.TableName tableName)
|
void |
flushRegion(byte[] regionName)
|
org.apache.hadoop.hbase.util.Pair<Integer,Integer> |
getAlterStatus(byte[] tableName)
|
org.apache.hadoop.hbase.util.Pair<Integer,Integer> |
getAlterStatus(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.ClusterStatus |
getClusterStatus()
|
org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState |
getCompactionState(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState |
getCompactionStateForRegion(byte[] regionName)
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
|
org.apache.hadoop.hbase.client.Connection |
getConnection()
|
long |
getLastMajorCompactionTimestamp(org.apache.hadoop.hbase.TableName tableName)
|
long |
getLastMajorCompactionTimestampForRegion(byte[] regionName)
|
String[] |
getMasterCoprocessors()
|
int |
getMasterInfoPort()
|
org.apache.hadoop.hbase.NamespaceDescriptor |
getNamespaceDescriptor(String name)
|
List<org.apache.hadoop.hbase.HRegionInfo> |
getOnlineRegions(org.apache.hadoop.hbase.ServerName sn)
|
int |
getOperationTimeout()
|
org.apache.hadoop.hbase.quotas.QuotaRetriever |
getQuotaRetriever(org.apache.hadoop.hbase.quotas.QuotaFilter filter)
|
List<org.apache.hadoop.hbase.client.security.SecurityCapability> |
getSecurityCapabilities()
|
org.apache.hadoop.hbase.HTableDescriptor |
getTableDescriptor(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
getTableDescriptors(List<String> names)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
getTableDescriptorsByTableName(List<org.apache.hadoop.hbase.TableName> tableNames)
|
List<org.apache.hadoop.hbase.HRegionInfo> |
getTableRegions(org.apache.hadoop.hbase.TableName tableName)
|
boolean |
isAborted()
|
boolean |
isBalancerEnabled()
|
boolean |
isCatalogJanitorEnabled()
|
boolean |
isNormalizerEnabled()
|
boolean |
isProcedureFinished(String signature,
String instance,
Map<String,String> props)
|
boolean |
isSnapshotFinished(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
|
boolean |
isTableAvailable(org.apache.hadoop.hbase.TableName tableName)
|
boolean |
isTableAvailable(org.apache.hadoop.hbase.TableName tableName,
byte[][] splitKeys)
|
boolean |
isTableDisabled(org.apache.hadoop.hbase.TableName tableName)
|
boolean |
isTableEnabled(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.NamespaceDescriptor[] |
listNamespaceDescriptors()
|
org.apache.hadoop.hbase.ProcedureInfo[] |
listProcedures()
|
List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> |
listSnapshots()
|
List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> |
listSnapshots(Pattern pattern)
|
List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> |
listSnapshots(String regex)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTableDescriptorsByNamespace(String name)
|
org.apache.hadoop.hbase.TableName[] |
listTableNames()
|
org.apache.hadoop.hbase.TableName[] |
listTableNames(Pattern pattern)
|
org.apache.hadoop.hbase.TableName[] |
listTableNames(Pattern pattern,
boolean includeSysTables)
|
org.apache.hadoop.hbase.TableName[] |
listTableNames(String regex)
|
org.apache.hadoop.hbase.TableName[] |
listTableNames(String regex,
boolean includeSysTables)
|
org.apache.hadoop.hbase.TableName[] |
listTableNamesByNamespace(String name)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTables()
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTables(Pattern pattern)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTables(Pattern pattern,
boolean includeSysTables)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTables(String regex)
|
org.apache.hadoop.hbase.HTableDescriptor[] |
listTables(String regex,
boolean includeSysTables)
|
void |
majorCompact(org.apache.hadoop.hbase.TableName tableName)
|
void |
majorCompact(org.apache.hadoop.hbase.TableName tableName,
byte[] columnFamily)
|
void |
majorCompactRegion(byte[] regionName)
|
void |
majorCompactRegion(byte[] regionName,
byte[] columnFamily)
|
void |
mergeRegions(byte[] nameOfRegionA,
byte[] nameOfRegionB,
boolean forcible)
|
void |
modifyColumn(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HColumnDescriptor descriptor)
|
void |
modifyNamespace(org.apache.hadoop.hbase.NamespaceDescriptor descriptor)
|
void |
modifyTable(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HTableDescriptor htd)
|
void |
move(byte[] encodedRegionName,
byte[] destServerName)
|
boolean |
normalize()
|
void |
offline(byte[] regionName)
|
void |
restoreSnapshot(byte[] snapshotName)
|
void |
restoreSnapshot(byte[] snapshotName,
boolean takeFailSafeSnapshot)
|
void |
restoreSnapshot(String snapshotName)
|
void |
restoreSnapshot(String snapshotName,
boolean takeFailSafeSnapshot)
|
void |
rollWALWriter(org.apache.hadoop.hbase.ServerName serverName)
|
int |
runCatalogScan()
|
boolean |
setBalancerRunning(boolean on,
boolean synchronous)
|
boolean |
setNormalizerRunning(boolean on)
|
void |
setQuota(org.apache.hadoop.hbase.quotas.QuotaSettings quota)
|
void |
shutdown()
|
void |
snapshot(byte[] snapshotName,
org.apache.hadoop.hbase.TableName tableName)
|
void |
snapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
|
void |
snapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName)
|
void |
snapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type)
|
void |
split(org.apache.hadoop.hbase.TableName tableName)
|
void |
split(org.apache.hadoop.hbase.TableName tableName,
byte[] splitPoint)
|
void |
splitRegion(byte[] regionName)
|
void |
splitRegion(byte[] regionName,
byte[] splitPoint)
|
void |
stopMaster()
|
void |
stopRegionServer(String hostnamePort)
|
boolean |
tableExists(org.apache.hadoop.hbase.TableName tableName)
|
org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SnapshotResponse |
takeSnapshotAsync(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
|
void |
truncateTable(org.apache.hadoop.hbase.TableName tableName,
boolean preserveSplits)
|
void |
unassign(byte[] regionName,
boolean force)
|
void |
updateConfiguration()
|
void |
updateConfiguration(org.apache.hadoop.hbase.ServerName server)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TablestorageAdmin
public TablestorageAdmin(TablestorageConnection connection)
- Construct a TablestorageAdmin for the target instance.
- Parameters:
connection - The connection used to construct this TablestorageAdmin.
getOperationTimeout
public int getOperationTimeout()
- Specified by:
getOperationTimeout in interface org.apache.hadoop.hbase.client.Admin
abort
public void abort(String why,
Throwable e)
- Specified by:
abort in interface org.apache.hadoop.hbase.Abortable- Specified by:
abort in interface org.apache.hadoop.hbase.client.Admin
isAborted
public boolean isAborted()
- Specified by:
isAborted in interface org.apache.hadoop.hbase.Abortable- Specified by:
isAborted in interface org.apache.hadoop.hbase.client.Admin
getConnection
public org.apache.hadoop.hbase.client.Connection getConnection()
- Specified by:
getConnection in interface org.apache.hadoop.hbase.client.Admin
tableExists
public boolean tableExists(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
tableExists in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTables
public org.apache.hadoop.hbase.HTableDescriptor[] listTables()
throws IOException
- Specified by:
listTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTables
public org.apache.hadoop.hbase.HTableDescriptor[] listTables(Pattern pattern)
throws IOException
- Specified by:
listTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTables
public org.apache.hadoop.hbase.HTableDescriptor[] listTables(String regex)
throws IOException
- Specified by:
listTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTables
public org.apache.hadoop.hbase.HTableDescriptor[] listTables(Pattern pattern,
boolean includeSysTables)
throws IOException
- Specified by:
listTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTables
public org.apache.hadoop.hbase.HTableDescriptor[] listTables(String regex,
boolean includeSysTables)
throws IOException
- Specified by:
listTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNames
public org.apache.hadoop.hbase.TableName[] listTableNames()
throws IOException
- Specified by:
listTableNames in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNames
public org.apache.hadoop.hbase.TableName[] listTableNames(Pattern pattern)
throws IOException
- Specified by:
listTableNames in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNames
public org.apache.hadoop.hbase.TableName[] listTableNames(String regex)
throws IOException
- Specified by:
listTableNames in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNames
public org.apache.hadoop.hbase.TableName[] listTableNames(Pattern pattern,
boolean includeSysTables)
throws IOException
- Specified by:
listTableNames in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNames
public org.apache.hadoop.hbase.TableName[] listTableNames(String regex,
boolean includeSysTables)
throws IOException
- Specified by:
listTableNames in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getTableDescriptor
public org.apache.hadoop.hbase.HTableDescriptor getTableDescriptor(org.apache.hadoop.hbase.TableName tableName)
throws org.apache.hadoop.hbase.TableNotFoundException,
IOException
- Specified by:
getTableDescriptor in interface org.apache.hadoop.hbase.client.Admin
- Throws:
org.apache.hadoop.hbase.TableNotFoundException
IOException
createTable
public void createTable(org.apache.hadoop.hbase.HTableDescriptor desc)
throws IOException
- Specified by:
createTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
createTable
public void createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[] startKey,
byte[] endKey,
int numRegions)
throws IOException
- Specified by:
createTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
createTable
public void createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[][] splitKeys)
throws IOException
- Specified by:
createTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
createTableAsync
public void createTableAsync(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[][] splitKeys)
throws IOException
- Specified by:
createTableAsync in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteTable
public void deleteTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
deleteTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteTables
public org.apache.hadoop.hbase.HTableDescriptor[] deleteTables(String regex)
throws IOException
- Specified by:
deleteTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteTables
public org.apache.hadoop.hbase.HTableDescriptor[] deleteTables(Pattern pattern)
throws IOException
- Specified by:
deleteTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
truncateTable
public void truncateTable(org.apache.hadoop.hbase.TableName tableName,
boolean preserveSplits)
throws IOException
- Specified by:
truncateTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
enableTable
public void enableTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
enableTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
enableTableAsync
public void enableTableAsync(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
enableTableAsync in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
enableTables
public org.apache.hadoop.hbase.HTableDescriptor[] enableTables(String regex)
throws IOException
- Specified by:
enableTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
enableTables
public org.apache.hadoop.hbase.HTableDescriptor[] enableTables(Pattern pattern)
throws IOException
- Specified by:
enableTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
disableTableAsync
public void disableTableAsync(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
disableTableAsync in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
disableTable
public void disableTable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
disableTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
disableTables
public org.apache.hadoop.hbase.HTableDescriptor[] disableTables(String regex)
throws IOException
- Specified by:
disableTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
disableTables
public org.apache.hadoop.hbase.HTableDescriptor[] disableTables(Pattern pattern)
throws IOException
- Specified by:
disableTables in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isTableEnabled
public boolean isTableEnabled(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
isTableEnabled in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isTableDisabled
public boolean isTableDisabled(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
isTableDisabled in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isTableAvailable
public boolean isTableAvailable(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
isTableAvailable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isTableAvailable
public boolean isTableAvailable(org.apache.hadoop.hbase.TableName tableName,
byte[][] splitKeys)
throws IOException
- Specified by:
isTableAvailable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getAlterStatus
public org.apache.hadoop.hbase.util.Pair<Integer,Integer> getAlterStatus(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getAlterStatus in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getAlterStatus
public org.apache.hadoop.hbase.util.Pair<Integer,Integer> getAlterStatus(byte[] tableName)
throws IOException
- Specified by:
getAlterStatus in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
addColumn
public void addColumn(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HColumnDescriptor column)
throws IOException
- Specified by:
addColumn in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteColumn
public void deleteColumn(org.apache.hadoop.hbase.TableName tableName,
byte[] columnName)
throws IOException
- Specified by:
deleteColumn in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
modifyColumn
public void modifyColumn(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HColumnDescriptor descriptor)
throws IOException
- Specified by:
modifyColumn in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
- Specified by:
getConfiguration in interface org.apache.hadoop.hbase.client.Admin
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getTableDescriptorsByTableName
public org.apache.hadoop.hbase.HTableDescriptor[] getTableDescriptorsByTableName(List<org.apache.hadoop.hbase.TableName> tableNames)
throws IOException
- Specified by:
getTableDescriptorsByTableName in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getTableDescriptors
public org.apache.hadoop.hbase.HTableDescriptor[] getTableDescriptors(List<String> names)
throws IOException
- Specified by:
getTableDescriptors in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
closeRegion
public void closeRegion(String regionname,
String serverName)
throws IOException
- Specified by:
closeRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
closeRegion
public void closeRegion(byte[] regionname,
String serverName)
throws IOException
- Specified by:
closeRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
closeRegion
public void closeRegion(org.apache.hadoop.hbase.ServerName sn,
org.apache.hadoop.hbase.HRegionInfo hri)
throws IOException
- Specified by:
closeRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
closeRegionWithEncodedRegionName
public boolean closeRegionWithEncodedRegionName(String encodedRegionName,
String serverName)
throws IOException
- Specified by:
closeRegionWithEncodedRegionName in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getOnlineRegions
public List<org.apache.hadoop.hbase.HRegionInfo> getOnlineRegions(org.apache.hadoop.hbase.ServerName sn)
throws IOException
- Specified by:
getOnlineRegions in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
flush
public void flush(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
flush in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
flushRegion
public void flushRegion(byte[] regionName)
throws IOException
- Specified by:
flushRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
compact
public void compact(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
compact in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
compact
public void compact(org.apache.hadoop.hbase.TableName tableName,
byte[] columnFamily)
throws IOException
- Specified by:
compact in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
compactRegion
public void compactRegion(byte[] regionName)
throws IOException
- Specified by:
compactRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
compactRegion
public void compactRegion(byte[] regionName,
byte[] columnFamily)
throws IOException
- Specified by:
compactRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
majorCompact
public void majorCompact(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
majorCompact in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
majorCompact
public void majorCompact(org.apache.hadoop.hbase.TableName tableName,
byte[] columnFamily)
throws IOException
- Specified by:
majorCompact in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
majorCompactRegion
public void majorCompactRegion(byte[] regionName)
throws IOException
- Specified by:
majorCompactRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
majorCompactRegion
public void majorCompactRegion(byte[] regionName,
byte[] columnFamily)
throws IOException
- Specified by:
majorCompactRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
compactRegionServer
public void compactRegionServer(org.apache.hadoop.hbase.ServerName sn,
boolean major)
throws IOException,
InterruptedException
- Specified by:
compactRegionServer in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
InterruptedException
move
public void move(byte[] encodedRegionName,
byte[] destServerName)
throws IOException
- Specified by:
move in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
assign
public void assign(byte[] regionName)
throws IOException
- Specified by:
assign in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
unassign
public void unassign(byte[] regionName,
boolean force)
throws IOException
- Specified by:
unassign in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
offline
public void offline(byte[] regionName)
throws IOException
- Specified by:
offline in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
setBalancerRunning
public boolean setBalancerRunning(boolean on,
boolean synchronous)
throws IOException
- Specified by:
setBalancerRunning in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
balancer
public boolean balancer()
throws IOException
- Specified by:
balancer in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isBalancerEnabled
public boolean isBalancerEnabled()
throws IOException
- Specified by:
isBalancerEnabled in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
normalize
public boolean normalize()
throws IOException
- Specified by:
normalize in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isNormalizerEnabled
public boolean isNormalizerEnabled()
throws IOException
- Specified by:
isNormalizerEnabled in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
setNormalizerRunning
public boolean setNormalizerRunning(boolean on)
throws IOException
- Specified by:
setNormalizerRunning in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
enableCatalogJanitor
public boolean enableCatalogJanitor(boolean enable)
throws IOException
- Specified by:
enableCatalogJanitor in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
runCatalogScan
public int runCatalogScan()
throws IOException
- Specified by:
runCatalogScan in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isCatalogJanitorEnabled
public boolean isCatalogJanitorEnabled()
throws IOException
- Specified by:
isCatalogJanitorEnabled in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
mergeRegions
public void mergeRegions(byte[] nameOfRegionA,
byte[] nameOfRegionB,
boolean forcible)
throws IOException
- Specified by:
mergeRegions in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
split
public void split(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
split in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
split
public void split(org.apache.hadoop.hbase.TableName tableName,
byte[] splitPoint)
throws IOException
- Specified by:
split in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
splitRegion
public void splitRegion(byte[] regionName)
throws IOException
- Specified by:
splitRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
splitRegion
public void splitRegion(byte[] regionName,
byte[] splitPoint)
throws IOException
- Specified by:
splitRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
modifyTable
public void modifyTable(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.HTableDescriptor htd)
throws IOException
- Specified by:
modifyTable in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
shutdown
public void shutdown()
throws IOException
- Specified by:
shutdown in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
stopMaster
public void stopMaster()
throws IOException
- Specified by:
stopMaster in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
stopRegionServer
public void stopRegionServer(String hostnamePort)
throws IOException
- Specified by:
stopRegionServer in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getClusterStatus
public org.apache.hadoop.hbase.ClusterStatus getClusterStatus()
throws IOException
- Specified by:
getClusterStatus in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
createNamespace
public void createNamespace(org.apache.hadoop.hbase.NamespaceDescriptor descriptor)
throws IOException
- Specified by:
createNamespace in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
modifyNamespace
public void modifyNamespace(org.apache.hadoop.hbase.NamespaceDescriptor descriptor)
throws IOException
- Specified by:
modifyNamespace in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteNamespace
public void deleteNamespace(String name)
throws IOException
- Specified by:
deleteNamespace in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getNamespaceDescriptor
public org.apache.hadoop.hbase.NamespaceDescriptor getNamespaceDescriptor(String name)
throws IOException
- Specified by:
getNamespaceDescriptor in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listNamespaceDescriptors
public org.apache.hadoop.hbase.NamespaceDescriptor[] listNamespaceDescriptors()
throws IOException
- Specified by:
listNamespaceDescriptors in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableDescriptorsByNamespace
public org.apache.hadoop.hbase.HTableDescriptor[] listTableDescriptorsByNamespace(String name)
throws IOException
- Specified by:
listTableDescriptorsByNamespace in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listTableNamesByNamespace
public org.apache.hadoop.hbase.TableName[] listTableNamesByNamespace(String name)
throws IOException
- Specified by:
listTableNamesByNamespace in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getTableRegions
public List<org.apache.hadoop.hbase.HRegionInfo> getTableRegions(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getTableRegions in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
abortProcedure
public boolean abortProcedure(long procId,
boolean mayInterruptIfRunning)
throws IOException
- Specified by:
abortProcedure in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listProcedures
public org.apache.hadoop.hbase.ProcedureInfo[] listProcedures()
throws IOException
- Specified by:
listProcedures in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
abortProcedureAsync
public Future<Boolean> abortProcedureAsync(long procId,
boolean mayInterruptIfRunning)
throws IOException
- Specified by:
abortProcedureAsync in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
rollWALWriter
public void rollWALWriter(org.apache.hadoop.hbase.ServerName serverName)
throws IOException
- Specified by:
rollWALWriter in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getMasterCoprocessors
public String[] getMasterCoprocessors()
throws IOException
- Specified by:
getMasterCoprocessors in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getCompactionState
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState getCompactionState(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getCompactionState in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getCompactionStateForRegion
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState getCompactionStateForRegion(byte[] regionName)
throws IOException
- Specified by:
getCompactionStateForRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getLastMajorCompactionTimestamp
public long getLastMajorCompactionTimestamp(org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
getLastMajorCompactionTimestamp in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getLastMajorCompactionTimestampForRegion
public long getLastMajorCompactionTimestampForRegion(byte[] regionName)
throws IOException
- Specified by:
getLastMajorCompactionTimestampForRegion in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
snapshot
public void snapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName)
throws IOException,
IllegalArgumentException
- Specified by:
snapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
IllegalArgumentException
snapshot
public void snapshot(byte[] snapshotName,
org.apache.hadoop.hbase.TableName tableName)
throws IOException,
IllegalArgumentException
- Specified by:
snapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
IllegalArgumentException
snapshot
public void snapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type)
throws IOException,
IllegalArgumentException
- Specified by:
snapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
IllegalArgumentException
snapshot
public void snapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
throws IOException,
IllegalArgumentException
- Specified by:
snapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
IllegalArgumentException
takeSnapshotAsync
public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SnapshotResponse takeSnapshotAsync(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
throws IOException
- Specified by:
takeSnapshotAsync in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isSnapshotFinished
public boolean isSnapshotFinished(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
throws IOException
- Specified by:
isSnapshotFinished in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
restoreSnapshot
public void restoreSnapshot(byte[] snapshotName)
throws IOException
- Specified by:
restoreSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
restoreSnapshot
public void restoreSnapshot(String snapshotName)
throws IOException
- Specified by:
restoreSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
restoreSnapshot
public void restoreSnapshot(byte[] snapshotName,
boolean takeFailSafeSnapshot)
throws IOException
- Specified by:
restoreSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
restoreSnapshot
public void restoreSnapshot(String snapshotName,
boolean takeFailSafeSnapshot)
throws IOException
- Specified by:
restoreSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
cloneSnapshot
public void cloneSnapshot(byte[] snapshotName,
org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
cloneSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
cloneSnapshot
public void cloneSnapshot(String snapshotName,
org.apache.hadoop.hbase.TableName tableName)
throws IOException
- Specified by:
cloneSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
execProcedure
public void execProcedure(String signature,
String instance,
Map<String,String> props)
throws IOException
- Specified by:
execProcedure in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
execProcedureWithRet
public byte[] execProcedureWithRet(String signature,
String instance,
Map<String,String> props)
throws IOException
- Specified by:
execProcedureWithRet in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
isProcedureFinished
public boolean isProcedureFinished(String signature,
String instance,
Map<String,String> props)
throws IOException
- Specified by:
isProcedureFinished in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listSnapshots
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots()
throws IOException
- Specified by:
listSnapshots in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listSnapshots
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots(String regex)
throws IOException
- Specified by:
listSnapshots in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
listSnapshots
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots(Pattern pattern)
throws IOException
- Specified by:
listSnapshots in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteSnapshot
public void deleteSnapshot(byte[] snapshotName)
throws IOException
- Specified by:
deleteSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteSnapshot
public void deleteSnapshot(String snapshotName)
throws IOException
- Specified by:
deleteSnapshot in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteSnapshots
public void deleteSnapshots(String regex)
throws IOException
- Specified by:
deleteSnapshots in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
deleteSnapshots
public void deleteSnapshots(Pattern pattern)
throws IOException
- Specified by:
deleteSnapshots in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
setQuota
public void setQuota(org.apache.hadoop.hbase.quotas.QuotaSettings quota)
throws IOException
- Specified by:
setQuota in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getQuotaRetriever
public org.apache.hadoop.hbase.quotas.QuotaRetriever getQuotaRetriever(org.apache.hadoop.hbase.quotas.QuotaFilter filter)
throws IOException
- Specified by:
getQuotaRetriever in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
coprocessorService
public org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel coprocessorService()
- Specified by:
coprocessorService in interface org.apache.hadoop.hbase.client.Admin
coprocessorService
public org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel coprocessorService(org.apache.hadoop.hbase.ServerName sn)
- Specified by:
coprocessorService in interface org.apache.hadoop.hbase.client.Admin
updateConfiguration
public void updateConfiguration(org.apache.hadoop.hbase.ServerName server)
throws IOException
- Specified by:
updateConfiguration in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
updateConfiguration
public void updateConfiguration()
throws IOException
- Specified by:
updateConfiguration in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getMasterInfoPort
public int getMasterInfoPort()
throws IOException
- Specified by:
getMasterInfoPort in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
getSecurityCapabilities
public List<org.apache.hadoop.hbase.client.security.SecurityCapability> getSecurityCapabilities()
throws IOException
- Specified by:
getSecurityCapabilities in interface org.apache.hadoop.hbase.client.Admin
- Throws:
IOException
Copyright © 2020. All rights reserved.