cqlsh不会在Linux上连接

编程入门 行业动态 更新时间:2024-10-28 08:16:52
本文介绍了cqlsh不会在Linux上连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已尝试这篇文章和 Cassandra doc 。

我试过运行所有版本的Cassandra,包括最新版本3.7从tarball和Debian包,但我不断收到错误,当我执行 cqlsh 。

错误:

:('无法连接到任何服务器',{'127.0.0.1':TypeError('ref()不接受关键字参数',)})

我在将Linux Mint从17.3升级到18之前没有运行Cassandra的问题。

我相信我安装了所有必需的包8和python 2.7.12。

我认为问题存在cassandra.yaml文件,因为默认设置不工作,但我不知道如何配置

解决方案

任何建议都可以正确运行。

<您正在使用 CASSANDRA-11850 ,其中cqlsh与Python 2.7.11+ 。此票已标记为已解决,并且补丁已应用于尚未发布的Cassandra 3.9。

安装所有必要的软件包,如java 8和python 2.7.12。

回到Python 2.7.10,而cqlsh应该工作(不是微不足道的)。否则, DataStax DevCenter 应与Cassandra 3.7配合使用。 / p>

编辑20161020

Cassandra 3.9几周前发布,现在可以下载。

I've tried all the measures from this post and Cassandra doc.

I've tried running all the versions of Cassandra including the latest release 3.7 from tarball and Debian package, but I keep getting errors when I execute cqlsh.

Error:

Connection error: ('Unable to connect to any servers', {'127.0.0.1': TypeError('ref() does not take keyword arguments',)})

I had no problem running Cassandra before I upgraded my Linux Mint from 17.3 to 18.

I believe I installed all the necessary packages such as java 8 and python 2.7.12.

I think the problem exists in cassandra.yaml file since the default setting isn't working, but I'm not sure how to configure properly to get it running.

Any suggestions appreciated.

解决方案

You are running into CASSANDRA-11850, where cqlsh breaks with Python 2.7.11+. This ticket has been marked as "Resolved" and a patch has been applied to Cassandra 3.9 which has not been released yet.

I believe I installed all the necessary packages such as java 8 and python 2.7.12.

In the interim (until 3.9 is released) you can roll back to Python 2.7.10, and cqlsh should work (not trivial). Otherwise, DataStax DevCenter should work with Cassandra 3.7.

Edit 20161020

Cassandra 3.9 was released a few weeks ago, and can now be downloaded.

更多推荐

cqlsh不会在Linux上连接

本文发布于:2023-10-29 10:45:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539480.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:会在   cqlsh   Linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!