【问题标题】:Cassandra 1.0 Schema AgreementCassandra 1.0 架构协议
【发布时间】: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


【解决方案1】:

得到了cassandra用户组的回复

这是一个bug,补丁在这里

https://issues.apache.org/jira/browse/CASSANDRA-3391

在修复之前避免在 key_validator_class 中使用 CompositeType

我希望它如 jira 中所述解决

问候,泰米尔语

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-05
    • 2014-11-01
    • 1970-01-01
    • 2018-02-12
    • 1970-01-01
    • 1970-01-01
    • 2016-10-02
    • 2015-09-29
    相关资源
    最近更新 更多