如何在没有 cassandra-cli 的情况下检查 Cassandra table 的内部结构?

How to inspect Cassandra table's internal structure without cassandra-cli?

对于 Cassandra 3.0,删除了名为 "cassandra-cli" 的实用程序。它允许查看 table 是如何在内部存储的。喜欢这里:

RowKey: title1
=> (name=, value=, timestamp=1393102991499000)
=> (name=author, value=Some Author, timestamp=1393102991499000)
=> (name=year, value=1993, timestamp=1393102991499000)
RowKey: title2
=> (name=, value=, timestamp=1393102991499100)
=> (name=author, value=Another Author, timestamp=1393102991499100)
=> (name=year, value=1987, timestamp=1393102991499100)

如何在 Cassandra >= 3.0 中做到这一点?

对于 Cassandra 3.0,他们更改了 sstable 格式并且没有更新用于调试内容的工具,因此删除了这些工具。参见 CASSANDRA-7464

如果您阅读评论,似乎有些人正在为 3.x 开发 sstable2json 的更新版本。