When i try to connect to cqlsh I get this error:
Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.4']",)})
If I add explicitly version like this cqlsh --cqlversion=3.4.4
it is fine, but I wonder how to set CQL version to be 3.4.4 by default so I can connect without parameter ?
Note: To execute a CQL file without starting a shell session use bin/cqlsh --file ' file_name ' .
Open cqlsh and type show VERSION . This gives all the versions of cqlsh, DSE, Cassandra etc.
The file is typically located in ~/. cassandra/cqlshrc. Note: If cqlsh finds the . cqlshrc file located in the home directory, cqlsh moves the file to ~/.
You can specify this in your .cassandra/cqlshrc file:
[cql]
version=3.4.4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With