cassandra-3.0 - Cassandra:使用 CQL 获取表分区器名称
问题描述
Cassandra 有 3 个分区器:
Murmur3Partitioner
RandomPartitioner
ByteOrderedPartitioner
这可以使用 YAML 文件进行设置,但是我是否触发了任何 cql 查询来找出表使用哪个分区器来生成令牌。
解决方案
A) 使用下面的 cqlsh 命令。
cqlsh:ah300001> 描述集群;
集群:Cluster1
分区:org.apache.cassandra.dht.Murmur3Partitioner
B) ah300001> nodetool describecluster
集群信息:
Name: Cluster1
Snitch: org.apache.cassandra.locator.DynamicEndpointSnitch
**Partitioner**: org.apache.cassandra.dht.Murmur3Partitioner
推荐阅读
- google-maps-markers - 如何在谷歌地图中设置标记的标题始终可见?
- json - 将 JSON 发送到 Kafka 集群?
- ag-grid - 在 angular-ag-grid 中,如何仅在特定列标题上添加垂直线/分隔符?
- r - 如何使用 R 重命名函数中的输出数据集?
- flutter - 使用 2 个类型参数声明类型“StateNotifierProvider”,但给出了 1 个类型参数
- node.js - 如何使用天蓝色建议搜索(节点)搜索特殊字符
- sql - 如何将行聚合到一个月
- azure - 授予对象权限 Azure SQL Server 语法不正确
- angular - Angular Material 组件(例如 Datepicker)是否有水平版本?
- html - 带有彩色标题的线性渐变的背景图像在移动浏览器上不起作用