I've been working on Cassandra from the past two weeks and am stuck in a few places i was hoping you could help me out with it.
I've installed the apache-cassandra-2.0.1,perlcassa-master,Perl5.10, Thrift::XS and Time::HiRes.I am still not able to connect to Cassandra .when i run perl Makefile.PL i get the follow warning
"Warning: prerequisite Class::Accessor 0 not found. Writing Makefile for perlcassa" Ignoring the warning when i ran my script i got the following error. "Base class package "Class::Accessor" is empty. (Perhaps you need to 'use' the module which defines that package first,or make that module available in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
enter code here
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .). at /usr/local/share/perl5/Cassandra/Types.pm line 38 BEGIN failed--compilation aborted at /usr/local/share/perl5/Cassandra/Types.pm line 38. Compilation failed in require at /usr/local/share/perl5/Cassandra/Cassandra.pm line 11. BEGIN failed--compilation aborted at /usr/local/share/perl5/Cassandra/Cassandra.pm line 11. Compilation failed in require at /usr/local/share/perl5/perlcassa/Client.pm line 18. BEGIN failed--compilation aborted at /usr/local/share/perl5/perlcassa/Client.pm line 18. Compilation failed in require at /usr/local/share/perl5/perlcassa.pm line 159. BEGIN failed--compilation aborted at /usr/local/share/perl5/perlcassa.pm line 159. Compilation failed in require at ./cassconn.pl line 2. BEGIN failed--compilation aborted at ./cassconn.pl line 2."
my script cassconn.pl
#!/usr/bin/perl
use perlcassa;
my $result = $obj->exec(
"SELECT n,ei,toj,sal,d FROM sample.test WHERE n='divya'",
{key_value => 'n'}
);
my $row = $result->fetchone();
print "Row key, col01: ".$row->{key}.", ".$row->{col01}."\n";