Cassandra CQLSH协议错误

Cassandra CQLSH协议错误,cassandra,cqlsh,cassandra-3.0,Cassandra,Cqlsh,Cassandra 3.0,我对cqlsh有一个错误 当我键入cqlsh以启动cassandra shell时,在cassandra服务器已经启动的位置会出现此错误 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.2

我对cqlsh有一个错误 当我键入cqlsh以启动cassandra shell时,在cassandra服务器已经启动的位置会出现此错误

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.2']",)})
我还安装了cassandra驱动程序和 导出CQLSH\u NO\u BUNDLED=true 但一切都没有改变 谁有办法解决这个问题?!!
我的cassandra版本是3.6

您正在连接的协议版本不受cassandra协议版本的支持

尝试添加
--cqlversion=“3.4.2”
作为cqlsh中的参数

bin/cqlsh --cqlversion="3.4.2"
尝试以下命令

sudo apt install python-pip
pip install cassandra-driver
export CQLSH_NO_BUNDLED=true

当我键入您的建议命令时,此错误出现“连接错误:('cannotconnecttoanyservers',{'127.0.0.1':TypeError('ref()不接受关键字参数',)})”帮助。谢谢你,这对我也有帮助。