spragues has asked for the wisdom of the Perl Monks concerning the following question:
All who dare to read,
I know this is a long shot but i'm out of ideas so i joined this group of misfits and now seek the advice of the Oracle.
Short back story.
I'm using Apache/Phoenix to query Apache/HBase data. I presume most of you out there have heard of HBase but less of you have heard of Phoenix. Phoenix is slick sql wrapper (openSourced by Salesforce.com) over HBase. All this is good. The hitch is its all Java (naturally.) However, they have made a JDBC driver available (hooray.) I can and do use DBD::JDBC to run sql commands to interact with it. This works out Pretty Dang Well(tm).
Why then do i seek the Oracle?
Two pesky meta commands I can't for the life of me figure out how to make work.
1. show tables
2. show databases
DBD::DBI has $dbh->tables but DBD::JDBC does not implement it. boo-hiss. So then i rolled up my sleeves and started looking at $dbh->jdbc_func() calls after reading the jdbc doc on how to list metadata. Alas, all my attempts have failed.
this is the one that had the most promise i thought:
but it yields:1. $dbh->jdbc_func("%", "%", "%", "%", jdbc_getMetaData.getTables");
Fri Apr 4 13:46:00 2014 - error encountered: DBD::JDBC::db jdbc_func +failed: com.vizdom.dbd.jdbc.DbdException: Reflection exception: Unabl +e to invoke method
So after all that i realize its a pretty specialized question but i'm hoping, just maybe, i might get lucky and find some other poor schmuck that has been forced to used JDBC from perl... that maybe has been down this road before me. Any takers?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::JDBC craziness
by basiliscos (Pilgrim) on Apr 05, 2014 at 11:46 UTC | |
by spragues (Initiate) on Apr 08, 2014 at 19:29 UTC |