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?
|
|---|
| 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 |