| Constructor and Description |
|---|
ThriftAdmin(THBaseService.Client client,
org.apache.thrift.transport.TTransport tTransport,
org.apache.hadoop.conf.Configuration conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, addReplicationPeer, addReplicationPeerAsync, balancer, balancer, compactRegionServer, enableCatalogJanitor, execProcedureWithRet, getBackupMasters, getClusterMetrics, getClusterStatus, getMaster, getMasterCoprocessorNames, getMasterCoprocessors, getMasterInfoPort, getRegionMetrics, getRegionServers, hasUserPermissions, isSplitOrMergeEnabled, listDeadServers, modifyColumn, move, runCatalogScan, setBalancerRunning, setCleanerChoreRunning, setNormalizerRunning, setSplitOrMergeEnabled, takeSnapshotAsyncpublic ThriftAdmin(THBaseService.Client client, org.apache.thrift.transport.TTransport tTransport, org.apache.hadoop.conf.Configuration conf)
public int getOperationTimeout()
getOperationTimeout in interface Adminpublic boolean isAborted()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface AdminIOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Adminpublic boolean tableExists(TableName tableName) throws IOException
tableExists in interface AdminIOExceptionpublic Connection getConnection()
getConnection in interface Adminpublic HTableDescriptor[] listTables() throws IOException
listTables in interface AdminIOExceptionpublic List<TableDescriptor> listTableDescriptors() throws IOException
listTableDescriptors in interface AdminIOExceptionpublic HTableDescriptor[] listTables(Pattern pattern) throws IOException
listTables in interface AdminIOExceptionpublic List<TableDescriptor> listTableDescriptors(Pattern pattern) throws IOException
listTableDescriptors in interface AdminIOExceptionpublic HTableDescriptor[] listTables(String regex) throws IOException
listTables in interface AdminIOExceptionpublic HTableDescriptor[] listTables(Pattern pattern, boolean includeSysTables) throws IOException
listTables in interface AdminIOExceptionpublic List<TableDescriptor> listTableDescriptors(Pattern pattern, boolean includeSysTables) throws IOException
listTableDescriptors in interface AdminIOExceptionpublic HTableDescriptor[] listTables(String regex, boolean includeSysTables) throws IOException
listTables in interface AdminIOExceptionpublic TableName[] listTableNames() throws IOException
listTableNames in interface AdminIOExceptionpublic TableName[] listTableNames(Pattern pattern) throws IOException
listTableNames in interface AdminIOExceptionpublic TableName[] listTableNames(String regex) throws IOException
listTableNames in interface AdminIOExceptionpublic TableName[] listTableNames(Pattern pattern, boolean includeSysTables) throws IOException
listTableNames in interface AdminIOExceptionpublic TableName[] listTableNames(String regex, boolean includeSysTables) throws IOException
listTableNames in interface AdminIOExceptionpublic HTableDescriptor getTableDescriptor(TableName tableName) throws TableNotFoundException, IOException
getTableDescriptor in interface AdminTableNotFoundExceptionIOExceptionpublic TableDescriptor getDescriptor(TableName tableName) throws TableNotFoundException, IOException
getDescriptor in interface AdminTableNotFoundExceptionIOExceptionpublic HTableDescriptor[] listTableDescriptorsByNamespace(String name) throws IOException
listTableDescriptorsByNamespace in interface AdminIOExceptionpublic List<TableDescriptor> listTableDescriptorsByNamespace(byte[] name) throws IOException
listTableDescriptorsByNamespace in interface AdminIOExceptionpublic TableName[] listTableNamesByNamespace(String name) throws IOException
listTableNamesByNamespace in interface AdminIOExceptionpublic void createTable(TableDescriptor desc) throws IOException
createTable in interface AdminIOExceptionpublic void createTable(TableDescriptor desc, byte[] startKey, byte[] endKey, int numRegions) throws IOException
createTable in interface AdminIOExceptionpublic void createTable(TableDescriptor desc, byte[][] splitKeys) throws IOException
createTable in interface AdminIOExceptionpublic void deleteTable(TableName tableName) throws IOException
deleteTable in interface AdminIOExceptionpublic void truncateTable(TableName tableName, boolean preserveSplits) throws IOException
truncateTable in interface AdminIOExceptionpublic void enableTable(TableName tableName) throws IOException
enableTable in interface AdminIOExceptionpublic void disableTable(TableName tableName) throws IOException
disableTable in interface AdminIOExceptionpublic boolean isTableEnabled(TableName tableName) throws IOException
isTableEnabled in interface AdminIOExceptionpublic boolean isTableDisabled(TableName tableName) throws IOException
isTableDisabled in interface AdminIOExceptionpublic boolean isTableAvailable(TableName tableName) throws IOException
isTableAvailable in interface AdminIOExceptionpublic boolean isTableAvailable(TableName tableName, byte[][] splitKeys) throws IOException
isTableAvailable in interface AdminIOExceptionpublic void addColumnFamily(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
addColumnFamily in interface AdminIOExceptionpublic void deleteColumn(TableName tableName, byte[] columnFamily) throws IOException
deleteColumn in interface AdminIOExceptionpublic void deleteColumnFamily(TableName tableName, byte[] columnFamily) throws IOException
deleteColumnFamily in interface AdminIOExceptionpublic void modifyColumnFamily(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
modifyColumnFamily in interface AdminIOExceptionpublic void modifyTable(TableName tableName, TableDescriptor td) throws IOException
modifyTable in interface AdminIOExceptionpublic void modifyTable(TableDescriptor td) throws IOException
modifyTable in interface AdminIOExceptionpublic void modifyNamespace(NamespaceDescriptor descriptor) throws IOException
modifyNamespace in interface AdminIOExceptionpublic void deleteNamespace(String name) throws IOException
deleteNamespace in interface AdminIOExceptionpublic NamespaceDescriptor getNamespaceDescriptor(String name) throws NamespaceNotFoundException, IOException
getNamespaceDescriptor in interface AdminNamespaceNotFoundExceptionIOExceptionpublic NamespaceDescriptor[] listNamespaceDescriptors() throws IOException
listNamespaceDescriptors in interface AdminIOExceptionpublic void createNamespace(NamespaceDescriptor descriptor) throws IOException
createNamespace in interface AdminIOExceptionpublic boolean switchRpcThrottle(boolean enable)
throws IOException
switchRpcThrottle in interface AdminIOExceptionpublic boolean isRpcThrottleEnabled()
throws IOException
isRpcThrottleEnabled in interface AdminIOExceptionpublic boolean exceedThrottleQuotaSwitch(boolean enable)
throws IOException
exceedThrottleQuotaSwitch in interface AdminIOExceptionpublic HTableDescriptor[] disableTables(String regex) throws IOException
disableTables in interface AdminIOExceptionpublic HTableDescriptor[] disableTables(Pattern pattern) throws IOException
disableTables in interface AdminIOExceptionpublic HTableDescriptor[] enableTables(String regex) throws IOException
enableTables in interface AdminIOExceptionpublic HTableDescriptor[] enableTables(Pattern pattern) throws IOException
enableTables in interface AdminIOExceptionpublic HTableDescriptor[] deleteTables(String regex) throws IOException
deleteTables in interface AdminIOExceptionpublic HTableDescriptor[] deleteTables(Pattern pattern) throws IOException
deleteTables in interface AdminIOExceptionpublic HTableDescriptor[] getTableDescriptorsByTableName(List<TableName> tableNames) throws IOException
getTableDescriptorsByTableName in interface AdminIOExceptionpublic List<TableDescriptor> listTableDescriptors(List<TableName> tableNames) throws IOException
listTableDescriptors in interface AdminIOExceptionpublic HTableDescriptor[] getTableDescriptors(List<String> names) throws IOException
getTableDescriptors in interface AdminIOExceptionpublic void closeRegion(String regionname, String serverName)
closeRegion in interface Adminpublic void closeRegion(byte[] regionname,
String serverName)
closeRegion in interface Adminpublic boolean closeRegionWithEncodedRegionName(String encodedRegionName, String serverName)
closeRegionWithEncodedRegionName in interface Adminpublic void closeRegion(ServerName sn, HRegionInfo hri)
closeRegion in interface Adminpublic List<HRegionInfo> getOnlineRegions(ServerName sn)
getOnlineRegions in interface Adminpublic List<RegionInfo> getRegions(ServerName serverName)
getRegions in interface Adminpublic void flushRegion(byte[] regionName)
flushRegion in interface Adminpublic void flushRegionServer(ServerName serverName)
flushRegionServer in interface Adminpublic void compactRegion(byte[] regionName)
compactRegion in interface Adminpublic void compact(TableName tableName, byte[] columnFamily)
public void compactRegion(byte[] regionName,
byte[] columnFamily)
compactRegion in interface Adminpublic void compact(TableName tableName, CompactType compactType)
public void compact(TableName tableName, byte[] columnFamily, CompactType compactType)
public void majorCompact(TableName tableName)
majorCompact in interface Adminpublic void majorCompactRegion(byte[] regionName)
majorCompactRegion in interface Adminpublic void majorCompact(TableName tableName, byte[] columnFamily)
majorCompact in interface Adminpublic void majorCompactRegion(byte[] regionName,
byte[] columnFamily)
majorCompactRegion in interface Adminpublic void majorCompact(TableName tableName, CompactType compactType)
majorCompact in interface Adminpublic void majorCompact(TableName tableName, byte[] columnFamily, CompactType compactType)
majorCompact in interface Adminpublic Map<ServerName,Boolean> compactionSwitch(boolean switchState, List<String> serverNamesList)
compactionSwitch in interface Adminpublic void compactRegionServer(ServerName serverName)
compactRegionServer in interface Adminpublic void majorCompactRegionServer(ServerName serverName)
majorCompactRegionServer in interface Adminpublic void move(byte[] encodedRegionName,
ServerName destServerName)
public void unassign(byte[] regionName,
boolean force)
public boolean balancerSwitch(boolean onOrOff,
boolean synchronous)
balancerSwitch in interface Adminpublic boolean isBalancerEnabled()
isBalancerEnabled in interface Adminpublic CacheEvictionStats clearBlockCache(TableName tableName)
clearBlockCache in interface Adminpublic boolean isNormalizerEnabled()
isNormalizerEnabled in interface Adminpublic boolean normalizerSwitch(boolean on)
normalizerSwitch in interface Adminpublic boolean catalogJanitorSwitch(boolean onOrOff)
catalogJanitorSwitch in interface Adminpublic int runCatalogJanitor()
runCatalogJanitor in interface Adminpublic boolean isCatalogJanitorEnabled()
isCatalogJanitorEnabled in interface Adminpublic boolean cleanerChoreSwitch(boolean onOrOff)
cleanerChoreSwitch in interface Adminpublic boolean runCleanerChore()
runCleanerChore in interface Adminpublic boolean isCleanerChoreEnabled()
isCleanerChoreEnabled in interface Adminpublic void mergeRegions(byte[] nameOfRegionA,
byte[] nameOfRegionB,
boolean forcible)
mergeRegions in interface Adminpublic Future<Void> mergeRegionsAsync(byte[] nameOfRegionA, byte[] nameOfRegionB, boolean forcible)
mergeRegionsAsync in interface Adminpublic Future<Void> mergeRegionsAsync(byte[][] nameofRegionsToMerge, boolean forcible)
mergeRegionsAsync in interface Adminpublic void splitRegion(byte[] regionName)
splitRegion in interface Adminpublic void split(TableName tableName, byte[] splitPoint)
public void splitRegion(byte[] regionName,
byte[] splitPoint)
splitRegion in interface Adminpublic Future<Void> splitRegionAsync(byte[] regionName, byte[] splitPoint)
splitRegionAsync in interface Adminpublic Future<Void> modifyTableAsync(TableName tableName, TableDescriptor td)
modifyTableAsync in interface Adminpublic Future<Void> modifyTableAsync(TableDescriptor td)
modifyTableAsync in interface Adminpublic void stopMaster()
stopMaster in interface Adminpublic boolean isMasterInMaintenanceMode()
isMasterInMaintenanceMode in interface Adminpublic void stopRegionServer(String hostnamePort)
stopRegionServer in interface Adminpublic ClusterMetrics getClusterMetrics(EnumSet<ClusterMetrics.Option> options)
getClusterMetrics in interface Adminpublic List<RegionMetrics> getRegionMetrics(ServerName serverName, TableName tableName)
getRegionMetrics in interface Adminpublic Future<Void> createNamespaceAsync(NamespaceDescriptor descriptor)
createNamespaceAsync in interface Adminpublic Future<Void> modifyNamespaceAsync(NamespaceDescriptor descriptor)
modifyNamespaceAsync in interface Adminpublic List<HRegionInfo> getTableRegions(TableName tableName)
getTableRegions in interface Adminpublic List<RegionInfo> getRegions(TableName tableName)
getRegions in interface Adminpublic boolean abortProcedure(long procId,
boolean mayInterruptIfRunning)
abortProcedure in interface Adminpublic Future<Boolean> abortProcedureAsync(long procId, boolean mayInterruptIfRunning)
abortProcedureAsync in interface Adminpublic String getProcedures()
getProcedures in interface Adminpublic void rollWALWriter(ServerName serverName)
rollWALWriter in interface Adminpublic CompactionState getCompactionState(TableName tableName)
getCompactionState in interface Adminpublic CompactionState getCompactionState(TableName tableName, CompactType compactType)
getCompactionState in interface Adminpublic CompactionState getCompactionStateForRegion(byte[] regionName)
getCompactionStateForRegion in interface Adminpublic long getLastMajorCompactionTimestamp(TableName tableName)
getLastMajorCompactionTimestamp in interface Adminpublic long getLastMajorCompactionTimestampForRegion(byte[] regionName)
getLastMajorCompactionTimestampForRegion in interface Adminpublic void snapshot(byte[] snapshotName,
TableName tableName)
public void snapshot(String snapshotName, TableName tableName, SnapshotType type)
public void snapshot(SnapshotDescription snapshot)
public void snapshotAsync(SnapshotDescription snapshot)
snapshotAsync in interface Adminpublic boolean isSnapshotFinished(SnapshotDescription snapshot)
isSnapshotFinished in interface Adminpublic void restoreSnapshot(byte[] snapshotName)
restoreSnapshot in interface Adminpublic void restoreSnapshot(String snapshotName)
restoreSnapshot in interface Adminpublic Future<Void> restoreSnapshotAsync(String snapshotName)
restoreSnapshotAsync in interface Adminpublic void restoreSnapshot(byte[] snapshotName,
boolean takeFailSafeSnapshot)
restoreSnapshot in interface Adminpublic void restoreSnapshot(String snapshotName, boolean takeFailSafeSnapshot)
restoreSnapshot in interface Adminpublic void restoreSnapshot(String snapshotName, boolean takeFailSafeSnapshot, boolean restoreAcl)
restoreSnapshot in interface Adminpublic void cloneSnapshot(byte[] snapshotName,
TableName tableName)
cloneSnapshot in interface Adminpublic void cloneSnapshot(String snapshotName, TableName tableName, boolean restoreAcl)
cloneSnapshot in interface Adminpublic void cloneSnapshot(String snapshotName, TableName tableName)
cloneSnapshot in interface Adminpublic Future<Void> cloneSnapshotAsync(String snapshotName, TableName tableName)
cloneSnapshotAsync in interface Adminpublic void execProcedure(String signature, String instance, Map<String,String> props)
execProcedure in interface Adminpublic byte[] execProcedureWithReturn(String signature, String instance, Map<String,String> props)
execProcedureWithReturn in interface Adminpublic boolean isProcedureFinished(String signature, String instance, Map<String,String> props)
isProcedureFinished in interface Adminpublic List<SnapshotDescription> listSnapshots()
listSnapshots in interface Adminpublic List<SnapshotDescription> listSnapshots(String regex)
listSnapshots in interface Adminpublic List<SnapshotDescription> listSnapshots(Pattern pattern)
listSnapshots in interface Adminpublic List<SnapshotDescription> listTableSnapshots(String tableNameRegex, String snapshotNameRegex)
listTableSnapshots in interface Adminpublic List<SnapshotDescription> listTableSnapshots(Pattern tableNamePattern, Pattern snapshotNamePattern)
listTableSnapshots in interface Adminpublic void deleteSnapshot(byte[] snapshotName)
deleteSnapshot in interface Adminpublic void deleteSnapshot(String snapshotName)
deleteSnapshot in interface Adminpublic void deleteSnapshots(String regex)
deleteSnapshots in interface Adminpublic void deleteSnapshots(Pattern pattern)
deleteSnapshots in interface Adminpublic void deleteTableSnapshots(String tableNameRegex, String snapshotNameRegex)
deleteTableSnapshots in interface Adminpublic void deleteTableSnapshots(Pattern tableNamePattern, Pattern snapshotNamePattern)
deleteTableSnapshots in interface Adminpublic void setQuota(QuotaSettings quota)
public QuotaRetriever getQuotaRetriever(QuotaFilter filter)
getQuotaRetriever in interface Adminpublic List<QuotaSettings> getQuota(QuotaFilter filter)
public CoprocessorRpcChannel coprocessorService()
coprocessorService in interface Adminpublic CoprocessorRpcChannel coprocessorService(ServerName serverName)
coprocessorService in interface Adminpublic void updateConfiguration(ServerName server)
updateConfiguration in interface Adminpublic void updateConfiguration()
updateConfiguration in interface Adminpublic List<SecurityCapability> getSecurityCapabilities()
getSecurityCapabilities in interface Adminpublic boolean splitSwitch(boolean enabled,
boolean synchronous)
splitSwitch in interface Adminpublic boolean mergeSwitch(boolean enabled,
boolean synchronous)
mergeSwitch in interface Adminpublic boolean isSplitEnabled()
isSplitEnabled in interface Adminpublic boolean isMergeEnabled()
isMergeEnabled in interface Adminpublic void addReplicationPeer(String peerId, ReplicationPeerConfig peerConfig, boolean enabled)
addReplicationPeer in interface Adminpublic Future<Void> addReplicationPeerAsync(String peerId, ReplicationPeerConfig peerConfig, boolean enabled)
addReplicationPeerAsync in interface Adminpublic void removeReplicationPeer(String peerId)
removeReplicationPeer in interface Adminpublic Future<Void> removeReplicationPeerAsync(String peerId)
removeReplicationPeerAsync in interface Adminpublic void enableReplicationPeer(String peerId)
enableReplicationPeer in interface Adminpublic Future<Void> enableReplicationPeerAsync(String peerId)
enableReplicationPeerAsync in interface Adminpublic void disableReplicationPeer(String peerId)
disableReplicationPeer in interface Adminpublic Future<Void> disableReplicationPeerAsync(String peerId)
disableReplicationPeerAsync in interface Adminpublic ReplicationPeerConfig getReplicationPeerConfig(String peerId)
getReplicationPeerConfig in interface Adminpublic void updateReplicationPeerConfig(String peerId, ReplicationPeerConfig peerConfig)
updateReplicationPeerConfig in interface Adminpublic Future<Void> updateReplicationPeerConfigAsync(String peerId, ReplicationPeerConfig peerConfig)
updateReplicationPeerConfigAsync in interface Adminpublic void appendReplicationPeerTableCFs(String id, Map<TableName,List<String>> tableCfs) throws ReplicationException, IOException
appendReplicationPeerTableCFs in interface AdminReplicationExceptionIOExceptionpublic void removeReplicationPeerTableCFs(String id, Map<TableName,List<String>> tableCfs) throws ReplicationException, IOException
removeReplicationPeerTableCFs in interface AdminReplicationExceptionIOExceptionpublic List<ReplicationPeerDescription> listReplicationPeers()
listReplicationPeers in interface Adminpublic List<ReplicationPeerDescription> listReplicationPeers(Pattern pattern)
listReplicationPeers in interface Adminpublic void decommissionRegionServers(List<ServerName> servers, boolean offload)
decommissionRegionServers in interface Adminpublic List<ServerName> listDecommissionedRegionServers()
listDecommissionedRegionServers in interface Adminpublic void recommissionRegionServer(ServerName server, List<byte[]> encodedRegionNames)
recommissionRegionServer in interface Adminpublic List<TableCFs> listReplicatedTableCFs()
listReplicatedTableCFs in interface Adminpublic void enableTableReplication(TableName tableName)
enableTableReplication in interface Adminpublic void disableTableReplication(TableName tableName)
disableTableReplication in interface Adminpublic void clearCompactionQueues(ServerName serverName, Set<String> queues)
clearCompactionQueues in interface Adminpublic List<ServerName> clearDeadServers(List<ServerName> servers)
clearDeadServers in interface Adminpublic void cloneTableSchema(TableName tableName, TableName newTableName, boolean preserveSplits)
cloneTableSchema in interface Adminpublic Future<Void> createTableAsync(TableDescriptor desc)
createTableAsync in interface Adminpublic Future<Void> createTableAsync(TableDescriptor desc, byte[][] splitKeys)
createTableAsync in interface Adminpublic Future<Void> deleteTableAsync(TableName tableName)
deleteTableAsync in interface Adminpublic Future<Void> truncateTableAsync(TableName tableName, boolean preserveSplits)
truncateTableAsync in interface Adminpublic Future<Void> enableTableAsync(TableName tableName)
enableTableAsync in interface Adminpublic Future<Void> disableTableAsync(TableName tableName)
disableTableAsync in interface Adminpublic Pair<Integer,Integer> getAlterStatus(TableName tableName)
getAlterStatus in interface Adminpublic Pair<Integer,Integer> getAlterStatus(byte[] tableName)
getAlterStatus in interface Adminpublic Future<Void> deleteColumnFamilyAsync(TableName tableName, byte[] columnFamily)
deleteColumnFamilyAsync in interface Adminpublic Future<Void> addColumnFamilyAsync(TableName tableName, ColumnFamilyDescriptor columnFamily)
addColumnFamilyAsync in interface Adminpublic Future<Void> modifyColumnFamilyAsync(TableName tableName, ColumnFamilyDescriptor columnFamily)
modifyColumnFamilyAsync in interface Adminpublic Future<Void> deleteNamespaceAsync(String name)
deleteNamespaceAsync in interface Adminpublic Map<TableName,Long> getSpaceQuotaTableSizes() throws IOException
getSpaceQuotaTableSizes in interface AdminIOExceptionpublic Map<TableName,SpaceQuotaSnapshot> getRegionServerSpaceQuotaSnapshots(ServerName serverName) throws IOException
getRegionServerSpaceQuotaSnapshots in interface AdminIOExceptionpublic SpaceQuotaSnapshot getCurrentSpaceQuotaSnapshot(String namespace) throws IOException
getCurrentSpaceQuotaSnapshot in interface AdminIOExceptionpublic SpaceQuotaSnapshot getCurrentSpaceQuotaSnapshot(TableName tableName) throws IOException
getCurrentSpaceQuotaSnapshot in interface AdminIOExceptionpublic void grant(UserPermission userPermission, boolean mergeExistingPermissions)
public void revoke(UserPermission userPermission)
public List<UserPermission> getUserPermissions(GetUserPermissionsRequest getUserPermissionsRequest)
getUserPermissions in interface Adminpublic List<Boolean> hasUserPermissions(String userName, List<Permission> permissions)
hasUserPermissions in interface Adminpublic Future<Void> splitRegionAsync(byte[] regionName) throws IOException
splitRegionAsync in interface AdminIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.