在nodetool getsstables
文档中写了关于sstables的分区键.我怎么能找到它?
https://docs.datastax.com/en/cassandra/3.0/cassandra/tools/toolsGetSstables.html
您可以在表格说明中找到您的分区键.
如果您可以访问Cassandra shell,则可以执行以下操作来查找表描述,例如(我的键空间animals
和我的表是types
:
cqlsh> desc animals.types;
CREATE TABLE animals.types (
id uuid PRIMARY KEY,
color text,
type text
)
Run Code Online (Sandbox Code Playgroud)
分区键id
位于此简单表中.
示例id:
cqlsh> select * from animals.types;
id | color | type
14fc1189-cb57-4e83-baca-ee178e605af1 | orange | giraffe
Run Code Online (Sandbox Code Playgroud)
在getstables中使用它,如下所示:
# nodetool getsstables animals types 14fc1189-cb57-4e83-baca-ee178e605af1
/var/lib/cassandra/data/animals/types-6ef0da00659911e88803df4f403979ef/mc-1-big-Data.db
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
277 次 |
最近记录: |