ByeBye
ByeBye

Reputation: 6946

Cassandra configuration config by cqlsh

Cassandra version: 3.9, CQLSH version: 5.0.1

Can I query Cassandra configuration (cassandra.yaml) using cqlsh?

Upvotes: 2

Views: 373

Answers (1)

Alex Ott
Alex Ott

Reputation: 87069

No, it's not possible in your version. It's possible only starting with Cassandra 4.0 that has so-called virtual tables, and there is a special table for configurations: system_views.settings:

cqlsh:test> select * from system_views.settings ;
 name                                            | value
-------------------------------------------------+-------
     transparent_data_encryption_options_enabled | false
   transparent_data_encryption_options_iv_length |    16
                                   trickle_fsync | false
                    trickle_fsync_interval_in_kb | 10240
                  truncate_request_timeout_in_ms | 60000
....

You can find more information on the virtual tables in the following blog post from TLP.

In the meantime, you can access configuration parameters via JMX.

Upvotes: 2

Related Questions