cassandra - 没有找到合适的 python 解释器。 Cassandra

标签 cassandra cassandra-2.0 cassandra-cli cassandra-2.1

我是一名 Java 开发人员,对 Linux 和 Cassandra 非常陌生。我正在使用 CentOS6。我正在尝试安装 Cassandra3.4 在 Linux 机器上。我已按照 here 中提到的步骤进行操作.

看起来 Linux 机器已经安装了 Python。当我尝试 python -V在连接到 Linux 机器的腻子中,我的腻子中得到以下输出。 Python 2.6.6.我假设安装了 python。FYKI,我不知道 python 是如何工作的。

完成安装过程后,我使用以下命令运行了 cassandra 服务。 /opt/cassandra/bin/cassandra -f -R & .一切都很好。

现在,问题来了。当我跑 ./cqlsh我收到以下错误。

No appropriate python interpreter found.



我做了我的研究并尝试了几个选项,但到目前为止没有任何成果。
  • Try 1
  • Try 2
  • Try 3
  • Try 4
  • Try 5

  • 以上链接都不适合我。或者可能我不够聪明,无法理解。任何帮助将非常感激。谢谢。

    最佳答案

    我认为您应该尝试将 Python 更新到 2.7 版本,因为 Cassandra 3.x 需要 Python 2.7

    你可以引用:

    [http://thecpaneladmin.com/how-to-upgrade-python-on-centos/][1]
    

    假设您在安装时没有更改任何 python 配置,
    它应该工作。
    您可以尝试告诉我们。

    关于cassandra - 没有找到合适的 python 解释器。 Cassandra ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36216377/

    相关文章:

    cassandra - 从 map 中选择特定值

    cassandra - Cassandra 中的主键可以包含集合列吗?

    cassandra - Cassandra 中的一对多映射

    cassandra - 替换种子节点而不将其从种子列表中删除

    cassandra - 有哪些选项可以加快 Cassandra 的全面修复?

    cassandra - 不匹配的输入 ')' 期望 CQL 中的 EOF

    dataframe - 如何使用 Spark DataFrames 查询 JSON 数据列?

    cassandra - OpsCenter 中的慢查询数据从哪里读取?

    cassandra - thrift_max_message_length_in_mb 无法识别 Cassandra

    cassandra - Cassandra 中允许的最大列数是多少