【问题标题】:Cassandra cqlsh Connection error : 'Unable to connect to any servers',.cql_version '3.4.0' is not supported by remoteCassandra cqlsh 连接错误:'无法连接到任何服务器',远程不支持.cql_version '3.4.0'
【发布时间】:2016-05-20 09:38:56
【问题描述】:

我试图通过 cqlsh 连接到我的远程 cassandra 数据库,

Connection error: ('Unable to connect to any servers', {'XX.XX.XX.XX': ProtocolError("cql_version '3.4.0' is not supported by remote (w/ native protocol). Supported versions: [u'3.2.1']",)})

我从link 安装了 Planet Cassandra 3.2.1 版。

我运行命令:nodetool version 它显示的是3.2.1 版本。

我发现了类似的问题 here ,但这对我没有帮助。

【问题讨论】:

    标签: python database cassandra remote-access cassandra-cli


    【解决方案1】:

    嗯,看起来您使用的是“旧”版本的 cqlsh,而不是 Cassandra 3.2.1 附带的版本。

    试试

    shell> which cqlsh 
    

    shell> locate cqlsh
    

    看看它是否为你指出了正确的版本

    【讨论】:

    • 适用于我,因为我在同一系统上安装了 DSE cassandra 和 vanilla cassandra。注释掉我的 bash_profile 中的 export PATH=~/dse/bin:$PATH 并重新加载 bash_profile 解决了问题并指向正确的 cqlsh 二进制文件。
    【解决方案2】:

    如果你想通过旧版本连接,你可以:

    $ cqlsh --cqlversion=3.2.1 host_ip
    

    例如:$ cqlsh --cqlversion=3.2.1 192.168.0.172 其中 192.168.0.172 是您要连接的机器。

    【讨论】:

      猜你喜欢
      • 2016-01-05
      • 2017-02-16
      • 2016-12-17
      • 2016-03-02
      • 2012-07-24
      • 2019-07-15
      • 2023-04-06
      • 1970-01-01
      • 2018-10-23
      相关资源
      最近更新 更多