我使用卡桑德拉3.3和CQL创建以下表如何获得的原始行内容卡桑德拉3.3
CREATE TABLE collected_data (
collection_hour int,
source_id int,
entity_id int,
measurement text,
value text,
primary key((collection_hour),source_id,entity_id,measurement)
);
插入一堆值到这个表之后,我希望看到如何每一行真的存储在卡桑德拉。为此,我已经看到人们正在使用cassandra-cli(list命令),但在3.3中不可用(3.0后)
有没有一种方法可以用来查询cassandra以查看每行是如何存储?我寻找一些工具或任何方式从CQL做到这一点...
谢谢
PS:在卡桑德拉CLI人会使用的“list命令”,并得到类似以下的输出(不同的表格):
RowKey: 1
=> (column=, value=, timestamp=1374546754299000)
=> (column=field2, value=00000002, timestamp=1374546754299000)
=> (column=field3, value=00000003, timestamp=1374546754299000)
RowKey: 4
=> (column=, value=, timestamp=1374546757815000)
=> (column=field2, value=00000005, timestamp=1374546757815000)
=> (column=field3, value=00000006, timestamp=1374546757815000)
可以使用Datastax DevCenter为 – TheGeorgeous
我这样做使得w ith devcenter,但不幸的是我找不到一种方法来做到这一点。 DevCenter能够以.... well ..表格格式--- X行x Y列打印表格内容,而这不是我正在寻找的内容。我需要存储在Cassandra中的原始格式。我需要这个来确保我正确理解数据的存储方式......谢谢 – Mircea