public class ListTablesExample {
public static void main(String[] args) throws IOException, InterruptedException {
Configuration conf = HBaseConfiguration.create();
HBaseHelper helper = HBaseHelper.getHelper(conf);
helper.dropTable("testtable1");
helper.dropTable("testtable2");
helper.dropTable("testtable3");
helper.createTable("testtable1", "colfam1", "colfam2", "colfam3");
helper.createTable("testtable2", "colfam1", "colfam2", "colfam3");
helper.createTable("testtable3", "colfam1", "colfam2", "colfam3");
// vv ListTablesExample
HBaseAdmin admin = new HBaseAdmin(conf);
HTableDescriptor[] htds = admin.listTables();