Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change CQL version?

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 ?

like image 502
Most31 Avatar asked Apr 09 '18 14:04

Most31


People also ask

How do I run a CQL file in Cassandra?

Note: To execute a CQL file without starting a shell session use bin/cqlsh --file ' file_name ' .

How do I know what version of Cassandra I have Windows?

Open cqlsh and type show VERSION . This gives all the versions of cqlsh, DSE, Cassandra etc.

Where can I find Cqlshrc file?

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 ~/.


1 Answers

You can specify this in your .cassandra/cqlshrc file:

[cql]
version=3.4.4
like image 81
Aaron Avatar answered Jan 04 '23 10:01

Aaron