Hi Chanan, Can you please post the output of:
DESCRIBE KEYSPACE test; DESCRIBE COLUMNFAMILY users; Thanks, - HU On Wed, Jun 11, 2014 at 2:13 PM, Chanan Berler <bc.ot...@gmail.com> 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 ---- > =================== > > _______________________________________________ > Perl mailing list > Perl@perl.org.il > http://mail.perl.org.il/mailman/listinfo/perl >
_______________________________________________ Perl mailing list Perl@perl.org.il http://mail.perl.org.il/mailman/listinfo/perl