如何在 cqlsh 中查看 apache cassandra 的实际配置值?

How to see the actual configuration values for apache cassandra in cqlsh?

这是我在 cassandra.yaml

prepared_statements_cache_size_mb: 500MB

是否可以在进入 cqlsh 后查看该变量的实际值?

因为 CQL 语句被发送到集群(应该是三个或更多节点),您不能使用 CQL 读取单个节点上的设置。 prepared_statements_cache 的值仅适用于该节点。

您可以使用 JMX 在节点上读取 org.apache.cassandra.config.Config,包括 prepared_statements_cache_size_mb。

从 Cassandra 4.0 开始,您可以通过阅读 system_views.settings table.

来做到这一点

查看 blog post from TLP on topic of virtual tables...