Examples of deleteTable()


Examples of com.alibaba.wasp.client.MasterAdminKeepAliveConnection.deleteTable()

          for (String tableName : ((DropTablePlan) executePlan).getTableNames()) {
            byte[] byteName = Bytes.toBytes(tableName);
            if (this.connection.isTableDisabled(byteName)) {
              MasterAdminProtos.DeleteTableRequest request = RequestConverter
                  .buildDeleteTableRequest(byteName);
              responses.add(masterAdminKeepAliveConnection.deleteTable(null,
                  request));
            } else {
              throw new TableNotDisabledException(tableName);
            }
          }
View Full Code Here

Examples of com.nearinfinity.honeycomb.Store.deleteTable()

        Store store = storeFactory.createStore(tableName);
        Table table = store.openTable(tableName);

        table.deleteAllRows();
        Util.closeQuietly(table);
        store.deleteTable(tableName);
    }

    public void openTable(String tableName) {
        Verify.isNotNullOrEmpty(tableName);
        this.tableName = tableName;
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseAdmin.deleteTable()

    try {
      HBaseAdmin admin = new HBaseAdmin(conf);
     
      for (String table : tableList) {
        println("Dropping " + table + "... Please wait.");
        admin.deleteTable(new Text(table));
      }
     
      return new ReturnMsg(1, "Table(s) dropped successfully.");
    } catch (IOException e) {
      return new ReturnMsg(0, extractErrMsg(e));
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseTestingUtility.deleteTable()

        jc=jcc.compile(mrPlan, "Test");
        job = jc.getWaitingJobs().get(0);

        Util.assertParallelValues(-1, -1, -1, 1, job.getJobConf());

        util.deleteTable(Bytes.toBytesBinary("test_table"));
        // In HBase 0.90.1 and above we can use util.shutdownMiniHBaseCluster()
        // here instead.
        MiniHBaseCluster hbc = util.getHBaseCluster();
        if (hbc != null) {
            hbc.shutdown();
View Full Code Here

Examples of org.apache.hadoop.hbase.IntegrationTestingUtility.deleteTable()

        LOG.info("testRunFromOutputCommitter: launching child job.");
        TestImportTsv.doMROnTableTest(util, cf, null, args, 1);
      } catch (Exception e) {
        throw new IOException("Underlying MapReduce job failed. Aborting commit.", e);
      } finally {
        util.deleteTable(table);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Admin.deleteTable()

    assertFalse(MetaTableAccessor.tableExists(hConnection, name));
    UTIL.createTable(name, HConstants.CATALOG_FAMILY);
    assertTrue(MetaTableAccessor.tableExists(hConnection, name));
    Admin admin = UTIL.getHBaseAdmin();
    admin.disableTable(name);
    admin.deleteTable(name);
    assertFalse(MetaTableAccessor.tableExists(hConnection, name));
    assertTrue(MetaTableAccessor.tableExists(hConnection,
      TableName.META_TABLE_NAME));
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.deleteTable()

    // create table
    HBaseAdmin admin = TEST_UTIL.getHBaseAdmin();
    if (admin.tableExists(tableName)) {
      admin.disableTable(tableName);
      admin.deleteTable(tableName);
    }
    HTableDescriptor htd = new HTableDescriptor(tableName);
    htd.addFamily(new HColumnDescriptor(family1));
    htd.addFamily(new HColumnDescriptor(family2));
    admin.createTable(htd);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.deleteTable()

    verifyDenied(gblUser, putActionAll, putAction1, putAction2);
    verifyDenied(gblUser, deleteActionAll, deleteAction1, deleteAction2);

    // delete table
    admin.disableTable(tableName);
    admin.deleteTable(tableName);
  }

  private boolean hasFoundUserPermission(UserPermission userPermission, List<UserPermission> perms) {
    return perms.contains(userPermission);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.deleteTable()

    // create table
    HBaseAdmin admin = TEST_UTIL.getHBaseAdmin();
    if (admin.tableExists(tableName)) {
      admin.disableTable(tableName);
      admin.deleteTable(tableName);
    }
    HTableDescriptor htd = new HTableDescriptor(tableName);
    htd.addFamily(new HColumnDescriptor(family1));
    htd.addFamily(new HColumnDescriptor(family2));
    admin.createTable(htd);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.deleteTable()

    verifyDenied(user, putQualifierAction);
    verifyDenied(user, deleteQualifierAction);

    // delete table
    admin.disableTable(tableName);
    admin.deleteTable(tableName);
  }

  @Test
  public void testPermissionList() throws Exception {
    final byte[] tableName = Bytes.toBytes("testPermissionList");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.