Cassandra 1.0 架构协议

发布于 2024-12-11 00:48:38 字数 1315 浏览 0 评论 0原文

我在设置 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

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;

我错过了什么?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骄兵必败 2024-12-18 00:48:38

得到了 cassandra 用户组的回复

这是一个错误,补丁在这里

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

直到修复为止,避免在 key_validator_class 中使用 CompositeType

我希望它能按照 jira 中提到的方式解决

问候,泰米尔语

Got a reply from cassandra user group

It is 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

I hope it resolved as mentioned in the jira

Regards, Tamil

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文