Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra 如何更改CQL版本?_Cassandra_Cql_Cqlsh - Fatal编程技术网

Cassandra 如何更改CQL版本?

Cassandra 如何更改CQL版本?,cassandra,cql,cqlsh,Cassandra,Cql,Cqlsh,当我尝试连接到cqlsh时,出现以下错误: 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']",)}) 如果我显式添加像这样的版本cqlsh--cqlversion=3.4.4,这

当我尝试连接到cqlsh时,出现以下错误:

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']",)})

如果我显式添加像这样的版本
cqlsh--cqlversion=3.4.4
,这很好,但我想知道如何将CQL版本默认设置为3.4.4,这样我就可以无参数连接?

您可以在.cassandra/cqlshrc文件中指定:

[cql]
version=3.4.4