【发布时间】:2011-12-10 17:11:45
【问题描述】:
我在设置 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 定义
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;
我错过了什么?
【问题讨论】:
-
抱歉发现问题,这是因为网络延迟架构协议需要超过 10 秒。我希望这就是问题所在。在我当地的问候泰米尔语中一切正常
-
不,问题仍然存在。它在我当地的 bcoz 中工作,我的路径中有 Cassandra 0.8.6 Home。因此,当我在终端中执行 cassandra 时,它从 0.8.6 而不是 1.0.0 开始。我希望这确实是一个需要注意的问题
标签: cassandra