【问题标题】:Unable to connect cqlsh in Cassandra 2.2.0无法在 Cassandra 2.2.0 中连接 cqlsh
【发布时间】:2015-11-22 07:37:01
【问题描述】:

我第一次尝试启动 cqlsh,但出现以下错误。

./cqlsh us01u256 9160 文件“./cqlsh.py”,第 625 行 ssl_options=sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None, ^ SyntaxError: 无效语法

我已检查 RPC 端口:9160 正在接受连接。

不确定配置文件中出了什么问题或缺少什么。

【问题讨论】:

  • 我还检查了 CQL 端口 9042,它已启动并接受连接。但错误是一样的。网络统计-an | grep 9042 tcp 0 0 172.19.32.146:9042 0.0.0.0:* LISTEN [oracle@us01u265:/h01/cassandra/apache-cassandra-2.2.0/bin]$./cqlsh 172.19.32.146 9042 文件 "./cqlsh. py",第 625 行 ssl_options=sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None, ^ SyntaxError: invalid syntax
  • 你的 Python 版本是多少(python --version)?

标签: cqlsh


【解决方案1】:

我能够通过使用以下功能解决此连接问题。命令。 ./cqlsh localhost 9042 --cqlversion=3.3.0.

我收到的早期错误消息具有误导性。

如果您遇到同样的情况,请告诉我这是否有帮助。

谢谢 拉梅什。

【讨论】:

    猜你喜欢
    • 2018-08-12
    • 2016-02-14
    • 2022-10-25
    • 2016-04-11
    • 2016-01-05
    • 2015-02-05
    • 2016-05-30
    • 1970-01-01
    • 2015-05-21
    相关资源
    最近更新 更多