我在Cassandra 1.0设置时面临以下问题。同样适用于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]
我试过这个http://wiki.apache.org/cassandra/FAQ#schema_disagreement
但现在当我重新启动群集时,我正在
`org.apache.cassandra.config.ConfigurationException: Invalid definition for comparator` org.apache.cassandra.db.marshal.CompositeType
这是我的键空间定义
create keyspace Stats with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options={replication_factor:1};
这是我的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;
我错过了什么?
答案 0 :(得分:3)
得到了cassandra用户组的回复
这是一个错误,补丁就在这里
https://issues.apache.org/jira/browse/CASSANDRA-3391
在修复之前,请避免在key_validator_class
中使用CompositeType我希望它在jira中提到
此致,泰米尔语