Re: cant seem to figure out secondary index definition

2011-03-07 Thread Jürgen Link
Am 07.03.2011 02:10, schrieb Tyler Hobbs: You want to add an index on a CF with TimeUUIDType column names? I think you've probably mistaken the purpose of compare_with. If you haven't, I think you'll need to add the index programmatically in order to specify a non ascii/unicode column name for

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Tyler Hobbs
On Sun, Mar 6, 2011 at 4:49 PM, Jürgen Link wrote: > Hi Roshan, > thanks for your post. I quickly ran over it, and the only difference I can > actually see is the compare_with type (we use TimeUUIDType). > > Any other suggestions, anyone? > You want to add an index on a CF with TimeUUIDType colu

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Jürgen Link
Hi Roshan, thanks for your post. I quickly ran over it, and the only difference I can actually see is the compare_with type (we use TimeUUIDType). Any other suggestions, anyone? Am 06.03.2011 12:24, schrieb Roshan Dawrani: Hi, Sure. Here is a sample of how we define it at the end of cassan

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Roshan Dawrani
On Sun, Mar 6, 2011 at 4:54 PM, Roshan Dawrani wrote: > > > -- > keyspaces: > - name: firstname > validator_class: UTF8Type > index_type: KEYS

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Roshan Dawrani
Hi, Sure. Here is a sample of how we define it at the end of cassandra.yaml. In the keyspace MyApp, it defines a column family MyUser, that has secondary indexes on 2 String columns - firstname, and lastname. Does it help?

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Jürgen Link
Hi Roshan, could you please post a small sample from your yaml file? As documentation of indexes is quite sparse, we're grateful for any working example. Cheers Jürgen Am 04.03.2011 19:27, schrieb Roshan Dawrani: On Fri, Mar 4, 2011 at 11:52 PM, Jürgen Link mailto:juergen.l...@googlemail.com>

Re: cant seem to figure out secondary index definition

2011-03-04 Thread Roshan Dawrani
On Fri, Mar 4, 2011 at 11:52 PM, Jürgen Link wrote: > Hi Jonathan, > as Roland is already out of office, I'd like to jump in. > Maybe this somehow got lost in the moddle of this thread, indexing works > fine in our "real" cassandra cluster. > For our test cases, we use an embedded cassandra instan

Re: cant seem to figure out secondary index definition

2011-03-04 Thread Jürgen Link
Hi Jonathan, as Roland is already out of office, I'd like to jump in. Maybe this somehow got lost in the moddle of this thread, indexing works fine in our "real" cassandra cluster. For our test cases, we use an embedded cassandra instance, which is configured via yaml. In case indexes cannot be

Re: cant seem to figure out secondary index definition

2011-03-04 Thread Jonathan Ellis
On Fri, Mar 4, 2011 at 10:09 AM, Roland Gude wrote: > Hi again, > > I am still suffering from this error (which severely limits testability for > me right now). Doesn't anybody have an idea, why IndexSliceQueries work if > the index is created with cassandra-cli and why it does not if the index

AW: cant seem to figure out secondary index definition

2011-03-04 Thread Roland Gude
;> [jetlang-0.2.1.jar:na] >> >> at java.lang.Thread.run(Thread.java:619) [na:1.6.0_17] >> >> Caused by: org.apache.cassandra.thrift.InvalidRequestException: null >> >> at >> org.apache.cassandra.thrift.Cassandra$get_indexed_slices_result.read(Cas

Re: cant seem to figure out secondary index definition

2011-02-21 Thread Roland Gude
2.1.jar:na] >> >> at java.lang.Thread.run(Thread.java:619) [na:1.6.0_17] >> >> Caused by: org.apache.cassandra.thrift.InvalidRequestException: null >> >> at >> org.apache.cassandra.thrift.Cassandra$get_indexed_slices_result.read(Cassandra.java:13299) >> ~[ca

Re: cant seem to figure out secondary index definition

2011-02-17 Thread Nate McCall
ser@cassandra.apache.org > Betreff: Re: cant seem to figure out secondary index definition > > > > Ah, ok. I checked that in source and the problem is that you wrote > "validation_class" but you should "validator_class". > > > > Augi > > 20

AW: cant seem to figure out secondary index definition

2011-02-17 Thread Roland Gude
ail.com] Gesendet: Dienstag, 15. Februar 2011 16:22 An: user@cassandra.apache.org Betreff: Re: cant seem to figure out secondary index definition Ah, ok. I checked that in source and the problem is that you wrote "validation_class" but you should "validator_class". Augi 2011

AW: cant seem to figure out secondary index definition

2011-02-15 Thread Roland Gude
Thanks, it works. roland Von: Michal Augustýn [mailto:augustyn.mic...@gmail.com] Gesendet: Dienstag, 15. Februar 2011 16:22 An: user@cassandra.apache.org Betreff: Re: cant seem to figure out secondary index definition Ah, ok. I checked that in source and the problem is that you wrote

Re: cant seem to figure out secondary index definition

2011-02-15 Thread Michal Augustýn
g, 15. Februar 2011 15:53 > *An:* user@cassandra.apache.org > *Betreff:* Re: cant seem to figure out secondary index definition > > > > Hi, > > > > if you download Cassandra and look into "conf/cassandra.yaml" then you can > see this: > > > > "

AW: cant seem to figure out secondary index definition

2011-02-15 Thread Roland Gude
ichal Augustýn [mailto:augustyn.mic...@gmail.com] Gesendet: Dienstag, 15. Februar 2011 15:53 An: user@cassandra.apache.org Betreff: Re: cant seem to figure out secondary index definition Hi, if you download Cassandra and look into "conf/cassandra.yaml" then you can see this: "this ke

Re: cant seem to figure out secondary index definition

2011-02-15 Thread Michal Augustýn
Hi, if you download Cassandra and look into "conf/cassandra.yaml" then you can see this: "this keyspace definition is for demonstration purposes only. Cassandra will not load these definitions during startup. See http://wiki.apache.org/cassandra/FAQ#no_keyspaces for an explanation." So you shoul

cant seem to figure out secondary index definition

2011-02-15 Thread Roland Gude
Hi, i am a little puzzled on creation of secondary indexes and the docs in that area are still very sparse. What I am trying to do is - in a columnfamily with TimeUUID comparator, I want the "special" timeuuid --1000-- to be indexed. The value being some UTF8 string