use of org.apache.hadoop.hbase.TableNotFoundException in project cdap by caskdata.
the class HBaseTableFactory method enableTable.
private void enableTable(HBaseDDLExecutor ddlExecutor, TableId tableId) throws IOException {
try {
TableName tableName = HTableNameConverter.toTableName(cConf.get(Constants.Dataset.TABLE_PREFIX), tableId);
ddlExecutor.enableTableIfDisabled(tableName.getNamespaceAsString(), tableName.getQualifierAsString());
LOG.debug("TMS Table {} has been enabled.", tableName);
} catch (TableNotFoundException ex) {
LOG.debug("TMS Table {} was not found. Skipping enable.", tableId, ex);
} catch (TableNotDisabledException ex) {
LOG.debug("TMS Table {} was already in enabled state.", tableId, ex);
}
}
Aggregations