}
}
catch (TableNotFoundException tnfe)
{
logger.error("Table doesn't exist, Caused by ", tnfe);
throw new SchemaGenerationException(tnfe, "Hbase");
}
catch (IOException ioe)
{
logger.error("Table isn't in enabled state, Caused by", ioe);
throw new SchemaGenerationException(ioe, "Hbase");
}
finally
{
try
{
admin.enableTable(databaseName);
}
catch (IOException ioe)
{
logger.error("Table isn't in enabled state, Caused by", ioe);
throw new SchemaGenerationException(ioe, "Hbase");
}
}
}
operation = null;
admin = null;