incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Gude <>
Subject cant seem to figure out secondary index definition
Date Tue, 15 Feb 2011 14:14:55 GMT

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 00000000-0000-1000-0000-000000000000 to be indexed. The value being some UTF8 string
on which I want to perform equality checks.

What do I need to put in my cassandra.yaml file?
Something like this?

  - column_metadata: [{name: 00000000-0000-1000-0000-000000000000, validation_class: UTF8Type,
index_name: MyIndex, index_type: KEYS}]

This gives me that error:

15:05:12.492 [pool-1-thread-1] ERROR o.a.c.config.DatabaseDescriptor - Fatal error: null;
Can't construct a java object for,2002:org.apache.cassandra.config.Config; exception=Cannot
create property=keyspaces for JavaBean=org.apache.cassandra.config.Config@7eb6e2; Cannot create
property=column_families for JavaBean=org.apache.cassandra.config.RawKeyspace@987a33; Cannot
create property=column_metadata for JavaBean=org.apache.cassandra.config.RawColumnFamily@716cb7;
Cannot create property=validation_class for JavaBean=org.apache.cassandra.config.RawColumnDefinition@e29820;
Unable to find property 'validation_class' on class: org.apache.cassandra.config.RawColumnDefinition
Bad configuration; unable to start server

I am furthermor uncertain if the column name will be correctly used if given like this. Should
I put the byte representation of the uuid there?


Roland Gude
Software Engineer

Im Mediapark 8, 50670 Köln

+49 221 4544151 (Tel)
+49 221 4544159 (Fax)
+49 171 7894057 (Mobil)


Geschäftsführer: Dr. Uwe Alkemper, Michael Friedmann
Handelsregister: Amtsgericht Köln HRB 65275
Ust-Ident-Nr: DE 264 773 520
Sitz der Gesellschaft: Köln

View raw message