Examples of deleteTable()


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

    while (!master.getAssignmentManager().getZKTable().isDisabledTable(table)) {
      Thread.sleep(10);
    }
    assertTrue("Table should be disabled state.", zkTable.isDisabledTable(table));
    HBaseAdmin admin = new HBaseAdmin(master.getConfiguration());
    admin.deleteTable(table);
  }

  private void abortMaster(MiniHBaseCluster cluster)
      throws InterruptedException {
    for (MasterThread mt : cluster.getLiveMasterThreads()) {
View Full Code Here

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

      } catch (IOException e) {
      }
      if (!success) {
        throw new IOException("could not disable table");
      }
      admin.deleteTable(tableResource.getName());
      servlet.getMetrics().incrementSucessfulDeleteRequests(1);
      return Response.ok().build();
    } catch (TableNotFoundException e) {
      servlet.getMetrics().incrementFailedDeleteRequests(1);
      return Response.status(Response.Status.NOT_FOUND)
View Full Code Here

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

  @Before
  public void before() throws Exception  {
    HBaseAdmin admin = TEST_UTIL.getHBaseAdmin();
    if (admin.tableExists(TABLE)) {
      if (admin.isTableEnabled(TABLE)) admin.disableTable(TABLE);
      admin.deleteTable(TABLE);
    }
    HTableDescriptor htd = new HTableDescriptor(TABLE);
    htd.addFamily(new HColumnDescriptor(COLUMN_1).setMaxVersions(3));
    htd.addFamily(new HColumnDescriptor(COLUMN_2).setMaxVersions(3));
    htd.addFamily(new HColumnDescriptor(COLUMN_3).setMaxVersions(3));
View Full Code Here

Examples of org.apache.tajo.catalog.CatalogService.deleteTable()

            QueryContext queryContext = query.context.getQueryContext();
            CatalogService catalog = query.context.getQueryMasterContext().getWorkerContext().getCatalog();

            if (queryContext.hasOutputTable()) { // TRUE only if a query command is 'CREATE TABLE' OR 'INSERT INTO'
              if (queryContext.isOutputOverwrite()) { // TRUE only if a query is 'INSERT OVERWRITE INTO'
                catalog.deleteTable(finalOutputDir.getName());
              }
              catalog.addTable(finalTableDesc);
            }
            query.setResultDesc(finalTableDesc);
            query.finished(QueryState.QUERY_SUCCEEDED);
View Full Code Here

Examples of org.kiji.schema.Kiji.deleteTable()

        }
      }

      for (String tableName : kiji.getTableNames()) {
        LOG.debug("Deleting kiji table " + tableName + "...");
        kiji.deleteTable(tableName);
      }

      // Delete the user tables:
      final HBaseAdmin hbaseAdmin = adminFactory.create(conf);
      try {
View Full Code Here

Examples of org.kiji.schema.KijiMetaTable.deleteTable()

        backup.getMetaTable().getTables().get("foo").getTableLayoutsBackup().getLayouts();
    assertEquals(1, layoutBackups.size());
    assertEquals(updatedLayout.getDesc(), layoutBackups.get(0).getLayout());

    // Delete the entries for "foo" from the meta table.
    metaTable.deleteTable("foo");
    assertTrue(!metaTable.tableSet().contains("foo"));
    LOG.info("metaTable tables = " + metaTable.listTables());
    assertEquals(0, metaTable.listTables().size());
    assertEquals(0, metaTable.tableSet().size());
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.deleteTable()

            // database.
            cTest00.insertTable("ds04");
            cTest01.insertTable("ds04");

            cTest00.deleteTable("ds04");
            cTest01.deleteTable("ds04");
        } catch (Exception e) {
            throw new IllegalStateException("Exception: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.deleteTable()

        UserTransaction utx = TransactionHelper.getUserTransaction();
        utx.begin();
        try {
            if (!callOnlyTransaction) {
                TableManager tableManager = new TableManager(dbName);
                tableManager.deleteTable(TABLE);
            }
            utx.commit();
        } catch (Exception e) {
            utx.rollback();
            throw new TransactionException("Error during commit.", e);
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.deleteTable()

            NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException,
            HeuristicMixedException {
        UserTransaction utx = TransactionHelper.getUserTransaction();
        if (!callOnlyTransaction) {
            TableManager tableManager = new TableManager(dbName);
            tableManager.deleteTable(TABLE);
        }
        utx.commit();

    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.db.TableManager.deleteTable()

     * @throws SQLException if a database error occurs.
     */
    public void deleteTable(final String dbName, final String tableName) throws NamingException, SQLException {
         // deletes the table
        TableManager tableManager = new TableManager(dbName);
        tableManager.deleteTable(tableName);
    }

    /**
     * @see org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.ItfDatabaseManager#verifyTable(java.lang.String,
     *      java.lang.String)
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.