Omnitrix has asked for the wisdom of the Perl Monks concerning the following question:

I tried to connect to Hive using Thrift::API::HiveClient2. Wrote the following:

#!usr/bin/perl use strict; use warnings; use Thrift::API::HiveClient2; my $port = 12345; my $host = '123:456:789:987'; my $client = Thrift::API::HiveClient2->new( host => $host , port => $port, ); $client->connect() or die "Failed to connect\n"; my $query = "hive query;"; my $rh = $client->execute($query);

An I am getting the following error->

Thrift::TException error: Missing version identifier (code 0) (in cl +eanup) Thrift::TException error: Missing version identifier (code 0) at (eval + 144) line 31.

My Hive client is HiveClient2. What am I missing?

  • Comment on 'Missing version identifier' error while connecting to Hive, using Thrift module of Perl
  • Select or Download Code

Replies are listed 'Best First'.
Re: 'Missing version identifier' error while connecting to Hive, using Thrift module of Perl
by talexb (Chancellor) on Apr 25, 2017 at 14:42 UTC

    I'm not familiar with this module -- did you install it using cpan, and did it pass all of it's tests?

    I don't see any issues with the module currently (1), so it may be you've used the module incorrectly. I guess we need more information to help you out.

    1. Issues link

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.