Examples of DeleteTableHandler


Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

  public void deleteTable(final byte [] tableName) throws IOException {
    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    this.executorService.submit(new DeleteTableHandler(tableName, this, this));
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " delete " + tableName);
    this.executorService.submit(new DeleteTableHandler(tableName, this, this).prepare());
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " delete " + tableName);
    this.executorService.submit(new DeleteTableHandler(tableName, this, this).prepare());
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

  public void deleteTable(final byte [] tableName) throws IOException {
    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    this.executorService.submit(new DeleteTableHandler(tableName, this, this));
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

        throw new IOException("Table " + tableName + " not disabled.");
      }
    }
    LOG.info("Disabled table " + tableName + '.');
    LOG.info("Deleting table " + tableName + '.');
    new DeleteTableHandler(tableNameInBytes, master, master).process();
    if (true == MetaReader.tableExists(master.getCatalogTracker(), tableName)) {
      throw new IOException("Table " + tableName + " not  deleted.");
    }
    LOG.info("Deleted table " + tableName + '.');
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    boolean indexTablePresent =
        master.getAssignmentManager().getZKTable().isTablePresent(indexTableName);
    // Not checking for disabled state because before deleting user table both user and index table
    // should be disabled.
    if ((false == IndexUtils.isIndexTable(Bytes.toString(tableName))) && indexTablePresent) {
      new DeleteTableHandler(Bytes.toBytes(indexTableName), master, master).process();
    }
    LOG.info("Exiting from postDeleteTableHandler of table " + Bytes.toString(tableName) + '.');
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " delete " + tableName);
    this.executorService.submit(new DeleteTableHandler(tableName, this, this).prepare());
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    checkInitialized();
    if (cpHost != null) {
      cpHost.preDeleteTable(tableName);
    }
    LOG.info(getClientIdAuditPrefix() + " delete " + tableName);
    this.service.submit(new DeleteTableHandler(tableName, this, this).prepare());
    if (cpHost != null) {
      cpHost.postDeleteTable(tableName);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    return Bytes.equals(tableName, HConstants.ROOT_TABLE_NAME) ||
           Bytes.equals(tableName, HConstants.META_TABLE_NAME);
  }

  public void deleteTable(final byte [] tableName) throws IOException {
    this.executorService.submit(new DeleteTableHandler(tableName, this, this));
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.handler.DeleteTableHandler

    return Bytes.equals(tableName, HConstants.ROOT_TABLE_NAME) ||
           Bytes.equals(tableName, HConstants.META_TABLE_NAME);
  }

  public void deleteTable(final byte [] tableName) throws IOException {
    this.executorService.submit(new DeleteTableHandler(tableName, this, this));
  }
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.