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    ----
===================
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to