How to Delete a Table in HBase

  • Sample code Segment

    Configuration config = HBaseConfiguration.create();
    HBaseAdmin h1 = new HBaseAdmin(config);
    h1.disableTable("table");
    h1.deleteTable("table");

  • Command

    hbase> disable 'table'
    hbase> drop 'table'