This tutorial will guide you through how to delete a HBASE table using Java 8. Make sure you first follow this tutorial on connecting to HBASE.
Import:
- import org.apache.hadoop.hbase.client.Admin;
Delete:
- //You must first disable the table
- conn.getAdmin().disableTable(TableName.valueOf("myTable"));
- //Now you can delete the table
- conn.getAdmin().deleteTable(TableName.valueOf("myTable"));