Cassandra:使用CQL获取表分区程序名称

问题描述 投票:0回答:1

Cassandra有3个分区:

Murmur3Partitioner RandomPartitioner ByteOrderedPartitioner

这可以使用YAML文件进行设置,但是我是否有任何cql查询可以找出该表用于生成令牌的分区器。

cassandra-3.0
1个回答
0
投票

A)使用下面的cqlsh命令。

cqlsh:ah300001>描述集群;

集群:Cluster1

分区:org.apache.cassandra.dht.Murmur3Partitioner

B)ah300001> nodetool descriptecluster

群集信息:

Name: Cluster1
Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch
**Partitioner**: org.apache.cassandra.dht.Murmur3Partitioner
© www.soinside.com 2019 - 2024. All rights reserved.