Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Searching for AE for Thrift

by bash (Scribe)
on Apr 05, 2015 at 12:38 UTC ( #1122473=perlquestion: print w/replies, xml ) Need Help??

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

Hello all,
Could you, please, advice me how to work with Thrift (thrift for HBase) with AnyEvent?
Is there any ready-to-go Package or I should put some "glue" to make them work together?

Replies are listed 'Best First'.
Re: Searching for AE for Thrift
by zwon (Abbot) on Apr 06, 2015 at 19:25 UTC
      Yep, but it doesn't work from box.
      I've tried to change
      $protocol = Thrift::BinaryProtocol->new($transport);
      $protocol = Thrift::XS::BinaryProtocol->new($transport);
      Got error:
      Can't call method "write" on an undefined value at /home/dev01/lib/Hbase/ line 9858
       9855 sub send_getTableNames{
       9856   my $self = shift;
       9858   $self->{output}->writeMessageBegin('getTableNames', TMessageType::CALL, $self->{seqid});
       9859   my $args = new Hbase::Hbase_getTableNames_args();
       9860   $args->write($self->{output});
       9861   $self->{output}->writeMessageEnd();
       9862   $self->{output}->getTransport()->flush();
       9863 }

      Looks like it requires additional changes, like custom transport and socket :(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1122473]
Approved by marinersk
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-08-12 18:30 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (66 votes). Check out past polls.