cassandra - 无法删除行键

标签 cassandra cassandra-0.7

我在 Cassandra 中删除行键时遇到问题。每当我删除 Row Key 时,该 RowKey 包含的所有列都会被删除,但 RowKey 本身不会被删除。任何人都可以告诉我如何删除一个 rowkey,一旦它被插入到 columnfamily 中。

我期待通过 thrift 客户端做到这一点。

最佳答案

这是 Cassandra 中分布式删除工作方式的副作用。来自Cassandra wiki page on distributed deletes :

[A] delete operation can't just wipe out all traces of the data being removed immediately: if we did, and a replica did not receive the delete operation, when it becomes available again it will treat the replicas that did receive the delete as having missed a write update, and repair them! So, instead of wiping out data on delete, Cassandra replaces it with a special value called a tombstone. The tombstone can then be propagated to replicas that missed the initial remove request.

另请查看常见问题解答中的这个问题:Why do deleted keys show up during range scans?

关于cassandra - 无法删除行键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8881273/

相关文章:

schema - 当我更新 Cassandra 列元数据时,为什么会收到无效的 UUID 字符串?

c++ - Apache thrift 做不到

java - 如何获取列值的类型

python - Cassandra 1.2 使用 Python 和 cql 库插入/更新 blob 列类型

Cassandra生产监控

docker-compose - 无法启动cassandra : Unable to lock JVM memory (ENOMEM)

cassandra - Quarkus Cassandra 集成

cassandra - 带有时间戳范围的 SELECT 请求中出现超时错误

cassandra - 将相同的数据插入 cassandra 数据库