Sorry, I had bug in my code, that throws the TableNotFoundException.
This piece of code worked out deleting both tables ('ITable' and 'ITable-A')
private static final String TABLENAME = "ITable";
private IndexedTableAdmin admin = new IndexedTableAdmin(getConf());
if (admin.tableExists(Bytes.toBytes(TABLENAME))) {
List<HTableDescriptor> list = Arrays.asList(admin.listTables());
for (HTableDescriptor currTable : list) {
if (currTable.getNameAsString().startsWith(TABLENAME)) {
admin.disableTable(currTable.getName());
admin.deleteTable(currTable.getName());
}
}
}
Ramesh
--
View this message in context:
http://www.nabble.com/How-to-delete-an-Indexed-HTable-tp24390750p24404623.html
Sent from the HBase User mailing list archive at Nabble.com.