-Re: hiveserver2 Thrift Interface With Perl
Dave Cardwell 2013-07-01, 09:52
I just wanted to update the list to let future searchers know that I found
a solution—David Morel of booking.com kindly shared some code with me to
get this working, which he has now released as a Perl library that has been
On 14 May 2013 11:35, Dave Cardwell <[EMAIL PROTECTED]> wrote:
> I wrote a few reporting scripts in Perl that connected to Hive via the
> Thrift interface.
> Since we upgraded CDH to 4.2.0 and hiveserver2 was installed (with Hive
> 0.10.0) the scripts no longer ran due to the API changes.
> I regenerated the Perl modules from the .thrift files and have tried to
> translate the Java examples I’ve found online, but cannot for the life of
> me get it working with the new interface.
> The Java examples seem to use a TOpenSessionReq class but I cannot find
> this anywhere in the generated Perl modules. If I try to skip that part and
> go straight to $client->OpenSession() without an argument, the TCLIService
> module itself complains that it cannot create a TOpenSessionResp object
> because the class is not loaded.
> I have attached example code. Can anyone advise me on how to get past this
> Best wishes,
> Dave Cardwell.