When trying to get the Schema and tables from existing HBASE, using phoenix driver. I am getting null as response.
How to get it?
Connection con = DriverManager.getConnection("jdbc:phoenix:zookeeper:2181:/hbase-unsecure"); stmt = con.createStatement(); String sche = con.getSchema(); log.debug("Schema from connection: "+sche); DatabaseMetaData metaData = con.getMetaData();
ResultSet schemaResultset = metaData.getSchemas();
what do you mean by existing HBase? do you mean that you have some tables and you mapped them with Phoenix table by creating or view
@Sunile ManjeeI am trying to write java-client, where by adding PhoenixDriver, to perform some operations. So I wanted to getSchema like normal SQL, from the metaData.
Connection con = ...
con.getMetaData().getSchema() ~ returns me null, or exception..!