Cassandra有3个分区:
Murmur3Partitioner RandomPartitioner ByteOrderedPartitioner
这可以使用YAML文件进行设置,但是我是否有任何cql查询可以找出该表用于生成令牌的分区器。
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