Re: CQL jdbc

2012-01-23 Thread Eric Evans
On Mon, Jan 23, 2012 at 10:49 AM, Alex Major wrote: > Think there's some confusion as Tamar has two emails in the same thread > addressing two separate concerns. > > I was referring to the discussion over Composite Key support that Tamar > quoted in his second email (the one that I replied to and

Re: CQL jdbc

2012-01-23 Thread Alex Major
Think there's some confusion as Tamar has two emails in the same thread addressing two separate concerns. I was referring to the discussion over Composite Key support that Tamar quoted in his second email (the one that I replied to and quoted), not his first/original question about JDBC. Unless I

Re: CQL jdbc

2012-01-23 Thread Eric Evans
On Mon, Jan 23, 2012 at 8:40 AM, Alex Major wrote: > Based on current discussions it looks like it will be in C* 1.1, but won't > be in the default cql package - you'll need to opt into cql3 driver as there > are some incompatible BC changes and they want to give an easier migration. > It will be

Re: CQL jdbc

2012-01-23 Thread Alex Major
Hey, Based on current discussions it looks like it will be in C* 1.1, but won't be in the default cql package - you'll need to opt into cql3 driver as there are some incompatible BC changes and they want to give an easier migration. It will be in the default standard distribution in 1.2. Alex. O

Re: CQL jdbc

2012-01-23 Thread Tamar Fraenkel
If I understand correctly this is due in Cassandra 1.1. Does anyone know when it is planned to be released? Thanks Tamar On January 23, 2012 at 11:13 AM Jawahar Prasad wrote: > Hi.. > Yes there is. But just 2 days back, they have released a patch: > > https://issues.apache.org/jira/browse/CA

CQL jdbc

2012-01-22 Thread Tamar Fraenkel
Hi! I have cassandra-clientutil, cassandra-jdbc and cassandra-thrift in my libs, but I get   java.lang.NoClassDefFoundError: Could not initialize class org.apache.cassandra.cql.jdbc.CassandraDriver when running Class.forName("org.apache.cassandra.cql.jdbc.CassandraDriver").newInstance();   Cassandr

Re: Range query ordering with CQL JDBC

2011-07-18 Thread samal
I haven't used CQL functionality much, but thirft client I think what I encounter is exactly this problem! > If you want to query over key, you can index keys to other CF, get the column names (that is key of other CF ). and then query actual CF with keys. switch away from the random partitioner.

Re: Range query ordering with CQL JDBC

2011-07-17 Thread Matthieu Nahoum
Aaron, thanks for the reply. I think what I encounter is exactly this problem! I'll try the suggestions, or switch away from the random partitioner. Cordially, Matthieu Nahoum On Sun, Jul 17, 2011 at 5:50 PM, aaron morton wrote: > You are probably seeing this http://wiki.apache.org/cassandra/

Re: Range query ordering with CQL JDBC

2011-07-17 Thread aaron morton
You are probably seeing this http://wiki.apache.org/cassandra/FAQ#range_rp Row keys are not ordered by their key, they are ordered by the token created by the partitioner. If you still think there is a problem provide an example of the data your are seeing and what you expected to see. Cheers

Re: Range query ordering with CQL JDBC

2011-07-15 Thread Matthieu Nahoum
Hi Eric, I am using the default partitioner, which is the RandomPartitioner I guess. The key type is String. Are Strings ordered by lexicographic rules? Thanks On Fri, Jul 15, 2011 at 12:04 PM, Eric Evans wrote: > On Thu, 2011-07-14 at 11:07 -0500, Matthieu Nahoum wrote: > > I am trying to ran

Re: Range query ordering with CQL JDBC

2011-07-15 Thread Eric Evans
On Thu, 2011-07-14 at 11:07 -0500, Matthieu Nahoum wrote: > I am trying to range-query a column family on which the keys are > epochs (similar to the output of System.currentTimeMillis() in Java). > In CQL (Cassandra 0.8.1 with JDBC driver): > > SELECT * FROM columnFamily WHERE KEY > '1309205

Range query ordering with CQL JDBC

2011-07-14 Thread Matthieu Nahoum
Hi, I am trying to range-query a column family on which the keys are epochs (similar to the output of System.currentTimeMillis() in Java). In CQL (Cassandra 0.8.1 with JDBC driver): SELECT * FROM columnFamily WHERE KEY > '130920500'; I can't get to have a result that make sense, it always re

Re: CQL/JDBC: Cannot locate cassandra.yaml

2011-06-05 Thread Jonathan Ellis
On Sun, Jun 5, 2011 at 9:38 AM, Timo Nentwig wrote: > Hmm, worked-around that by setting -Dcassandra.config (hmm, the client needs > the server's config...?). Yes, this is fixed for 0.8.1. > Not very verbose :-\ May have something to do with my l/p being just "/" for > AllowAll. Correct, that's

Re: CQL/JDBC: Cannot locate cassandra.yaml

2011-06-05 Thread Timo Nentwig
On 6/5/11 16:26, Timo Nentwig wrote: $ CLASSPATH=~/sqlshell/lib/ ~/sqlshell/bin/sqlshell org.apache.cassandra.cql.jdbc.CassandraDriver,jdbc:cassandra:foo/bar@localhost:9160/ks 2011-06-05 16:21:54,452 INFO [main] org.apache.cassandra.cql.jdbc.Connection - Connected to localhost:9160 2011-06-05

CQL/JDBC: Cannot locate cassandra.yaml

2011-06-05 Thread Timo Nentwig
$ CLASSPATH=~/sqlshell/lib/ ~/sqlshell/bin/sqlshell org.apache.cassandra.cql.jdbc.CassandraDriver,jdbc:cassandra:foo/bar@localhost:9160/ks 2011-06-05 16:21:54,452 INFO [main] org.apache.cassandra.cql.jdbc.Connection - Connected to localhost:9160 2011-06-05 16:21:54,517 ERROR [main] org.apache