org.apache.hadoop.hbase.client.Admin.disableTables()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.apache.hadoop.hbase.client.Admin.disableTables()方法的一些代码示例,展示了Admin.disableTables()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Admin.disableTables()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Admin
类名称:Admin
方法名:disableTables

Admin.disableTables介绍

[英]Disable tables matching the passed in pattern and wait on completion. Warning: Use this method carefully, there is no prompting and the effect is immediate. Consider using #listTables(java.lang.String) and #disableTable(org.apache.hadoop.hbase.TableName)
[中]禁用与传入模式匹配的表并等待完成。警告:小心使用此方法,没有提示,效果立即。考虑使用java表(java. Lang.Stand)和μ不可禁用(org .Apache .Hadoop .Hbas.TabLNEAM)

代码示例

代码示例来源:origin: apache/hbase

@Override
public void cleanUpCluster() throws Exception {
 if (!keepObjectsAtTheEnd) {
  Admin admin = util.getAdmin();
  admin.disableTables("ittable-\\d+");
  admin.deleteTables("ittable-\\d+");
  NamespaceDescriptor [] nsds = admin.listNamespaceDescriptors();
  for(NamespaceDescriptor nsd: nsds) {
   if(nsd.getName().matches("itnamespace\\d+")) {
    LOG.info("Removing namespace="+nsd.getName());
    admin.deleteNamespace(nsd.getName());
   }
  }
 }
 enabledTables.clear();
 disabledTables.clear();
 deletedTables.clear();
 namespaceMap.clear();
 Connection connection = getConnection();
 connection.close();
 super.cleanUpCluster();
}

代码示例来源:origin: apache/hbase

ht2.get(get);
this.admin.disableTables("testDisableAndEnableTable.*");

代码示例来源:origin: apache/phoenix

admin.disableTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
admin.deleteTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
droppedLocalIndexes = true;

代码示例来源:origin: com.aliyun.phoenix/ali-phoenix-core

admin.disableTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
admin.deleteTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
droppedLocalIndexes = true;

代码示例来源:origin: org.apache.phoenix/phoenix-core

admin.disableTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
admin.deleteTables(MetaDataUtil.LOCAL_INDEX_TABLE_PREFIX+".*");
droppedLocalIndexes = true;

代码示例来源:origin: org.apache.hbase/hbase-it

@Override
public void cleanUpCluster() throws Exception {
 if (!keepObjectsAtTheEnd) {
  Admin admin = util.getAdmin();
  admin.disableTables("ittable-\\d+");
  admin.deleteTables("ittable-\\d+");
  NamespaceDescriptor [] nsds = admin.listNamespaceDescriptors();
  for(NamespaceDescriptor nsd: nsds) {
   if(nsd.getName().matches("itnamespace\\d+")) {
    LOG.info("Removing namespace="+nsd.getName());
    admin.deleteNamespace(nsd.getName());
   }
  }
 }
 enabledTables.clear();
 disabledTables.clear();
 deletedTables.clear();
 namespaceMap.clear();
 Connection connection = getConnection();
 connection.close();
 super.cleanUpCluster();
}

代码示例来源:origin: org.apache.hbase/hbase-server

ht2.get(get);
this.admin.disableTables("testDisableAndEnableTable.*");

相关文章

Admin类方法