fmgoncalves / p5-cassandra-simple

Cassandra::Simple Perl Module - Easy to use, Perl oriented client interface to Apache Cassandra.
http://fmgoncalves.github.com/p5-cassandra-simple
9 stars 3 forks source link

Issue with Bit::Vector::new_Dec() #12

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hello, I am really impressed by how simple you made it to access cassandra using perl - very slick. I am having an issue however with getting data into my cassandra instance. When I call your super_column_support example or when I try to insert data using the insert command I retrieve this error:

$conn->insert(supersimple, 'KeyA', { 'SuperColumnA' => { 'SubColumnA' => 'AAA', 'SubColumnB' => 'AAB'}, 'SuperColumnB' => { 'SubColumnA' => 'ABA', 'SubColumnB' => 'ABB'} })

$VAR1 = 'Bit::Vector::new_Dec(): input string syntax error at /usr/local/share/perl5/Thrift/BinaryProtocol.pm line 203.';

I am not sure if this is an incompatibility on my end or something that can be fixed within your client implementation. Let me know if you need version information, etc.

Thank you!

fmgoncalves commented 12 years ago

I'm glad you like Cassandra::Simple, thank you! And please keep giving any feedback of errors or suggestions so it keeps improving!

As far as your error goes, I don't fully understand it since it comes from another module, but anyways try installing http://search.cpan.org/~agrundma/Thrift-XS-1.04/lib/Thrift/XS.pm so Cassandra::Simple will use Thrift::XS instead of Thrift and tell me if the error persists. Since Thrift::XS uses a different implementation of the Thrift binary protocol it should correct the error, and as an added bonus Thrift::XS is much faster!

ghost commented 12 years ago

You know, I think I figured out why I had so much trouble. The VM I was playing around with was a 32-bit machine. I started over with a 64-bit CentOS 5.8 running perl 5.14 and it worked right away using Thrift::XS! Very nice! Thank you again for your help.

fmgoncalves commented 12 years ago

Good to know it's working now.