HBase version :1.2.6
Phoenix Version : 4.10.0-Hbase-1.2.0
I am trying to drop schema but unable to do it.
It is throwing error that : schema is not empty.
But how to drop the schema in that case ??
What extra we need to do ?
Below is the java code using phoenix to drop schema from hbase :
Connection conn = setupDbConnection(); statement = conn.createStatement(); statement.executeUpdate("DROP SCHEMA "+schemaName); onn.commit();
There is no automated way to do this. You'll have to enumerate all the tables and drop them one by one. Maybe it'll be cool if we have a CASCADE drop option, but it's not there yet.