Looks like a bug, patch is here 
https://issues.apache.org/jira/browse/CASSANDRA-3391

Until it is fixed avoid using CompositeType in the key_validator_class and blow 
away the Schema and Migrations SSTables. 

Cheers


-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 20/10/2011, at 7:59 PM, Tamil selvan R.S wrote:

> Im facing the following issue with Cassandra 1.0 set up. The same works for 
> 0.8.7
> 
> # cassandra-cli  -h x.x.x.x -f RTSCFs.sch 
> Connected to: "Real Time Stats" on x.x.x.x/9160
> Authenticated to keyspace: Stats
> 39c3e120-fa24-11e0-0000-61d449114eff
> Waiting for schema agreement...
> The schema has not settled in 10 seconds; further migrations are ill-advised 
> until it does.
> Versions are 39c3e120-fa24-11e0-0000-61d449114eff:[x.x.x.x], 
> 317eb8f0-fa24-11e0-0000-61d449114eff:[x.x.x.y]
> I tried this http://wiki.apache.org/cassandra/FAQ#schema_disagreement
> 
> But Now when I restart the cluster I'm getting
> 
> `org.apache.cassandra.config.ConfigurationException: Invalid definition for 
> comparator` org.apache.cassandra.db.marshal.CompositeType
> This is my keyspace defn
> 
> create keyspace Stats with placement_strategy = 
> 'org.apache.cassandra.locator.SimpleStrategy' and 
> strategy_options={replication_factor:1};
> This is my CF defn
> 
>     create column family Sample_Stats with 
> default_validation_class=CounterColumnType
>     and key_validation_class='CompositeType(UTF8Type,UTF8Type)'
>     and comparator='CompositeType(UTF8Type, UTF8Type)'
>     and replicate_on_write=true;
> What am I missing?
> 

Reply via email to