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:

1. $dbh->jdbc_func("%", "%", "%", "%", jdbc_getMetaData.getTables");
but it yields:
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!


In reply to DBD::JDBC craziness by spragues

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.