How can I drop a schema that contains tables in HBase using Phoenix?
- HBase version :1.2.6
- Phoenix Version : 4.10.0-Hbase-1.2.0
I am trying to drop a schema, but I'm unable to do it. My schema consists of some tables.
I get an error that the schema is not empty. How can I drop the schema in that case? What extra do I have to do?
This is the Java code using Phoenix to drop schema from HBase:
Connection conn = setupDbConnection();
statement = conn.createStatement();
statement.executeUpdate("DROP SCHEMA "+schemaName);
conn.commit();