Hi Dotan, already tried this module same results :-( Am now trying to see if python module has better luck
Thanks Chanan בתאריך 11 ביונ 2014 19:33, "Dotan Dimet" <[email protected]> כתב: > I have no experience with Cassandra, but an expert I heard this week was > evangelizing CQL over Thrift, and I noticed there's a very recently updated > Cassandra client on CPAN - Net::Async::CassandraCQL - which uses that. > If you've got a new Cassandra install, you might have more luck with that. > > On 06/11/2014 02:14 PM, Chanan Berler wrote: > > Some information: > > Using cqlsh I have created a new keypsace 'test' and created a new > columnfamily name 'users' > and running select shows the data (inserted manually) > > > Chanan > > > On Wed, Jun 11, 2014 at 2:13 PM, Chanan Berler <[email protected]> wrote: > >> Hi All, >> >> Has anyone had some experience connecting to Cassandra DB using perl? >> I have tried using perlcassa but failed :( >> >> Following is a small test I used to connect to Cassandra: >> >> #!/usr/bin/perl >> use warnings; >> use strict; >> use Data::Dumper qw/Dumper/; >> use perlcassa; >> >> my $self = { >> }; >> >> my %connect_params = ( >> 'columnfamily' => 'users', >> 'keyspace' => 'test', >> 'seed_nodes' => [split(/,/, >> $self->{'_SEEDSNODES'})], >> 'read_consistency_level' => >> Cassandra::ConsistencyLevel::ALL, >> 'write_consistency_level' => >> Cassandra::ConsistencyLevel::ONE, >> 'port' => 9160, >> ); >> >> my $dbh = new perlcassa(%connect_params); >> >> the error message I receive is: >> Unable to find the column family users in test at /usr/local/share/perl5/ >> perlcassa.pm line 510. >> >> >> -- >> =================== >> ---- Chanan Berler ---- >> =================== >> > > > > -- > =================== > ---- Chanan Berler ---- > =================== > > > _______________________________________________ > Perl mailing [email protected]http://mail.perl.org.il/mailman/listinfo/perl > > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is > believed to be clean. > > _______________________________________________ > Perl mailing list > [email protected] > http://mail.perl.org.il/mailman/listinfo/perl >
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
