Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Searching for AE for Thrift

by zwon (Abbot)
on Apr 06, 2015 at 19:25 UTC ( #1122598=note: print w/replies, xml ) Need Help??


in reply to Searching for AE for Thrift

There's Thrift::XS package on CPAN, and its documentation mentions AnyEvent::Cassandra as an example of usage.

Replies are listed 'Best First'.
Re^2: Searching for AE for Thrift
by bash (Scribe) on Apr 06, 2015 at 22:45 UTC
    Yep, but it doesn't work from box.
    I've tried to change
    $protocol = Thrift::BinaryProtocol->new($transport);
    
    to
    $protocol = Thrift::XS::BinaryProtocol->new($transport);
    
    Got error:
    Can't call method "write" on an undefined value at /home/dev01/lib/Hbase/Hbase.pm line 9858
    
     9855 sub send_getTableNames{
     9856   my $self = shift;
     9857 
     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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1122598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-10-30 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (278 votes). Check out past polls.

    Notices?