Re: Cassandra, CQL, Thrift Deprecation?? and Erlang

2011-09-02 Thread J T
> > I'm not aware of anyone working on an erlang CQL client. > > On Fri, Sep 2, 2011 at 7:39 AM, J T wrote: > > Hi, > > > > I'm a fan of erlang, and have been using successive cassandra versions > via > > the erlang thrift interface for a couple of y

Re: cassandra-cli describe / dump command

2011-09-02 Thread J T
Thats brilliant, thanks. On Thu, Sep 1, 2011 at 7:07 PM, Jonathan Ellis wrote: > yes, cli "show schema" in 0.8.4+ > > On Thu, Sep 1, 2011 at 12:52 PM, J T wrote: > > Hi, > > > > I'm probably being blind .. but I can't see any way to dump the sch

Cassandra, CQL, Thrift Deprecation?? and Erlang

2011-09-02 Thread J T
Hi, I'm a fan of erlang, and have been using successive cassandra versions via the erlang thrift interface for a couple of years now. I see that cassandra seems to be moving to using CQL instead and so I was wondering if that means the thrift api will be deprecated and if so is there any effort u

cassandra-cli describe / dump command

2011-09-01 Thread J T
Hi, I'm probably being blind .. but I can't see any way to dump the schema definition (and the data in it for that matter) of a cluster in order to capture the current schema in a script file for subsequent replaying in to a different environment. For example, say I have a DEV env and wanted to

Re: simple erlang example

2011-02-19 Thread J T
Hi Sasha, Below is some code from an old module I was working with a while back. It should give you an idea of the direction to go but really if you look at the files generated by thrift for cassandra it should help as well: * cassandra_thrift.erl * cassandra_thrift.hrl * cassandra_types.erl

Re: simple erlang example

2011-02-19 Thread J T
o share you use both database? Does this mean you have > the same data in both database? > > Thanks for sharing. > > Kind regards, > Joshua. > > On Sun, Feb 20, 2011 at 12:41 AM, J T wrote: > > Hi Joshua, > > I can't speak for Sasha, but in my case I use

Re: simple erlang example

2011-02-19 Thread J T
Hi Joshua, I can't speak for Sasha, but in my case I use both Riak and Cassandra since cassandra has ranges and build in secondary indexes whereas Riak does not. Actually I use others too as the different ones bring different qualities to the table. JT> On Sat, Feb 19, 2011 at 7:18 AM, Joshua P

Re: simple erlang example

2011-02-19 Thread J T
HI Sasha, That was me that was going to try and put something on the wiki and I completely forgot about it. I'm tied up this weekend but I will endeavor to ping you an example asap. Jason On Fri, Feb 18, 2011 at 10:39 PM, Sasha Dolgy wrote: > hi, > > does anyone have an erlang example for conn

Re: Non-Unique Indexes, How ?

2010-11-10 Thread J T
Wed, Nov 10, 2010 at 5:55 PM, J T wrote: > > CF: Contacts (with an index on 'fullname') > > key : id1 { fullname : "John Brown", address : "London" } > > key : id2 { fullname : "John Brown", address : "Paris"} > > Would th

Non-Unique Indexes, How ?

2010-11-10 Thread J T
Hi, I'm trying to work out a way to support a non-unique index. For example, lets say I have a contact list, where its possible to have Names that are the same but are for different people and so should have different contact entries but I'd want to be able to search on their full name and get a

get_slice wont let me page backwards.

2010-11-05 Thread J T
Hi, I've been trying to write a wrapper around get_slice that supports paging semantics. I can get it to page forwards - starting with Start="" and then successively passing in a new Start / Count. But when i try going backwards from the end, passing Start = "" and Finish = "X", it doesn't give

Re: error: identifier ONE is unqualified!

2010-10-22 Thread J T
ut it's what I did last time I > felt like feeling some angst. > > Aaron > > > On 22 Oct, 2010,at 08:57 AM, J T wrote: > > What is the latest version of Thrift that cassandra-trunk is is supposed to > work with ? > > I know Thrift 0.2.0 works, I'm using that

error: identifier ONE is unqualified!

2010-10-21 Thread J T
What is the latest version of Thrift that cassandra-trunk is is supposed to work with ? I know Thrift 0.2.0 works, I'm using that on an existing cassandra 0.7 trunk install. I recently tried setting up another casandra node and just got the latest version of Thrift, which is now at 0.6.0 but afte

Re: BUG: secondaryIndexes AND multiple index expressions THAT fail to match

2010-10-15 Thread J T
a test case? > > On Fri, Oct 15, 2010 at 1:06 PM, J T wrote: > > Hi, > > If I do a secondary index look up with multiple index expressions (>1) > that > > do not result in a match then I get a looping entry in the log until I > > terminate the cassandra s

BUG: secondaryIndexes AND multiple index expressions THAT fail to match

2010-10-15 Thread J T
Hi, If I do a secondary index look up with multiple index expressions (>1) that do not result in a match then I get a looping entry in the log until I terminate the cassandra server. e.g. (I'll use a pseudo notation to indicate the examples) lookup( [ { SecondaryIndexedColumnName, "ColumnValue

Re: Null Pointer Exception / Secondary Indices

2010-10-13 Thread J T
ood. These messages are expected when logging at DEBUG. > > Gary. > > On Tue, Oct 12, 2010 at 02:35, J T wrote: > > I rinsed & repeated after updating to the latest trunk version and > checking > > if the 1571 patch was included (which it appeared to be) and the sta

Re: Null Pointer Exception / Secondary Indices

2010-10-12 Thread J T
ng 0 of 1: null:false:0...@1286840713 DEBUG [ReadStage:6] 2010-10-12 08:30:31,225 SliceQueryFilter.java (line 122) collecting 0 of 1: null:false:0...@1286840713 On Tue, Oct 12, 2010 at 7:50 AM, J T wrote: > Hi, > > Looks like I was premature in my response. > > I had cause today t

Re: Null Pointer Exception / Secondary Indices

2010-10-11 Thread J T
:29:26,859 SliceQueryFilter.java (line 122) collecting 0 of 1: null:false:0...@1286840713 This resulted in timeouts in my app. Jason On Wed, Oct 6, 2010 at 7:11 PM, J T wrote: > Hi, > > On a first pass, that patch seems to have solved the problem. > I'll be testing t

Re: Null Pointer Exception / Secondary Indices

2010-10-06 Thread J T
fixed by CASSANDRA-1571... if you're able to > test that patch, it would be very helpful. > > Thanks, > Stu > > -Original Message- > From: "J T" > Sent: Tuesday, October 5, 2010 9:50pm > To: cassandra-u...@incubator.apache.org > Subject: Null Poin

Null Pointer Exception / Secondary Indices

2010-10-06 Thread J T
Hi, I've been battling against some errors that only seem to crop up when I'm messing around with secondary indices in 0.7-beta2. Namely I seem to get errors like this start to happen, after I 'delete' a row in a CF that has a couple of secondary indices on it and then at some point later try to

Null Pointer Exception / Secondary Indices

2010-10-05 Thread J T
Hi, I've been battling against some errors that only seem to crop up when I'm messing around with secondary indices in 0.7-beta2. Namely I seem to get errors like this start to happen, after I 'delete' a row in a CF that has a couple of secondary indices on it and then at some point later try to

Re: Sorting by secondary index

2010-10-01 Thread J T
Hi Jonathan, I don't suppose there's any plan to support subcolumns of supercolumns in secondary indexes in the future ? Regards Jason On Fri, Oct 1, 2010 at 4:18 PM, Jonathan Ellis wrote: > secondary index results are always sorted by indexed column value. > rows with the same index value ar

Secondary Indexes and Super/SubColumns, is it possible ??

2010-10-01 Thread J T
Hi, I've managed to get secondary indexes working on Normal Columns. I've even managed to get multiple IndexExpressions to work when querying. However, its not clear to me 1) If I should be able to have a secondary index on a sub-column of a super-column 2) Assuming 1 is supported, how to speci

Re: Upgrading to Cassanda 0.7 Thrift Erlang

2010-07-28 Thread J T
framed thrift connections by default now (was unframed) > > On Tue, Jul 27, 2010 at 11:33 AM, J T wrote: > > Hi, > > I just tried upgrading a perfectly working Cassandra 0.6.3 to Cassandra > 0.7 > > and am finding that even after re-generating the erlang thrift bindin

Upgrading to Cassanda 0.7 Thrift Erlang

2010-07-27 Thread J T
Hi, I just tried upgrading a perfectly working Cassandra 0.6.3 to Cassandra 0.7 and am finding that even after re-generating the erlang thrift bindings that I am unable to perform any operation. I can get a connection but if I try to login or set the keyspace I get a report from the erlang binding