【问题标题】:Cassandra: “cqlsh” line 213 Using `%s` instead.\n' ^ % (CONFIG_FILE, HISTORY_DIR) SyntaxError: invalid syntaxCassandra: “cqlsh” line 213 使用 `%s` 代替。\n' ^ % (CONFIG_FILE, HISTORY_DIR) SyntaxError: invalid syntax
【发布时间】:2019-09-20 18:47:21
【问题描述】:

已安装 Cassandra 2.2。 CentOS 6 和 python 3.4.2 中的版本 环境变量中所有可用的路径。

文件 /usr/local/Python-3.4.2/setuptools-12.0.4/pip-6.0.6/p34env/bin/cqlsh

 File "/usr/local/Python-3.4.2/setuptools-12.0.4/pip-6.0.6/p34env/bin/cqlsh", line 213
    print '\nWarning: Specified cqlshrc location `%s` does not exist.Using `%s` instead.\n' % (CONFIG_FILE, HISTORY_DIR)
                                                                                          ^
SyntaxError: invalid syntax

【问题讨论】:

    标签: cassandra cqlsh


    【解决方案1】:

    cqlsh 仅支持 Python 2.x,因此您需要使用正确的 Python 版本来运行它。

    【讨论】:

      猜你喜欢
      • 2015-06-10
      • 1970-01-01
      • 2014-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-17
      相关资源
      最近更新 更多