无法使用 cassandra 0.8.2 更新架构
我安装了单节点 cassandra 0.8.2 。我已经使用 cassandra-cli 创建了一些列族,例如
create column family demo;
现在我必须在该列族上使用二级索引。为此,我需要升级架构。当我尝试使用 cassandra-cli 升级它时,
update column family demo with comparator=BytesType and column_metadata=[{column_name: col1, validation_class: UTF8Type, index_type: KEYS}];
我收到以下错误消息
org.apache.cassandra.db.marshal.MarshalException:无法解析“col1”
我尝试使用 bytes('col1') ,假设关键字、ascii 和 utf8 都不起作用。
作为十六进制字节
虽然同样的事情在 cassandra 0.8.4 上工作得很好
I have single node cassandra installion with 0.8.2 . I have created some column families with cassandra-cli like
create column family demo;
Now i have to use secondary indexes over this column family.For that i need to upgrade the schema.When i try to upgrade this with cassandra-cli like
update column family demo with comparator=BytesType and column_metadata=[{column_name: col1, validation_class: UTF8Type, index_type: KEYS}];
i get the following error message
org.apache.cassandra.db.marshal.MarshalException: cannot parse 'col1'
I have tried using the bytes('col1') , assume keyword ,ascii and utf8 none of them works.
as hex bytes
While the same thing works perfectly fine with cassandra 0.8.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你回答了你自己的问题。这是 0.8.2 中的一个错误,你应该升级。 (到最新的0.8版本,此时是0.8.7。)
You answered your own question. It's a bug in 0.8.2 and you should upgrade. (To the latest 0.8 release, which is 0.8.7 at this time.)