问题描述
我在Cassandra中删除行键时遇到问题。每当我删除Row Key,该RowKey包含的所有列都将被删除,但RowKey本身不会被删除。任何人都可以告诉我如何删除一个rowkey,一旦它被插入columnfamily。
I'm having an issue while deleting row key in Cassandra. Whenever I delete Row Key all the columns contained by that RowKey are deleted but RowKey itself is not deleted. Can anybody tell me how to remove a rowkey, once it is inserted in columnfamily.
我期待着通过thrift客户端。
I'm looking forward to do that via thrift client.
推荐答案
这是分布式删除在Cassandra中工作的副作用。从的Cassandra wiki页面:
This is a side effect of how distributed deletes work in Cassandra. From the Cassandra wiki page on distributed deletes:
另请参阅常见问题中的此问题: a href =http://wiki.apache.org/cassandra/FAQ#range_ghosts>为什么删除的键在范围扫描期间显示?
Also take a look at this question on the FAQ: Why do deleted keys show up during range scans?
这篇关于无法删除行键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!