2011-10-19 50 views
3

我正在面对以下Cassandra 1.0设置问题。为0.8.7Cassandra 1.0模式协议

# 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 

集群这是我的密钥空间DEFN

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

对不起发现了这个问题,这是因为网络延迟模式协议花了10多秒。 我希望这是问题所在。一切工作正常在我的本地 关心, 坦米尔 – Tamil

+0

不,问题仍然存在。它在我的本地bcoz中工作,我在我的路径中安装了Cassandra 0.8.6 Home。所以,当我在终端中执行cassandra时,它开始了0.8.6而不是1.0.0。我希望这真的是一个需要注意的问题 – Tamil

回答