Cassandra 1.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
得到了 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