cqlsh 连接错误:'ref() 不接受关键字参数' [英] cqlsh connection error: 'ref() does not take keyword arguments'

查看:31
本文介绍了cqlsh 连接错误:'ref() 不接受关键字参数'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了这篇文章Cassandra 文档.

我已经尝试运行所有版本的 Cassandra,包括来自 tarball 和 Debian 软件包的最新版本 3.7,但在我执行 cqlsh 时总是出现错误.

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.

错误:

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

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

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

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

我相信我安装了所有必需的包,例如 java 8 和 python 2.7.12.

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

我认为问题存在于 cassandra.yaml 文件中,因为默认设置不起作用,但我不确定如何正确配置以使其运行.

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.

感谢任何建议.

推荐答案

您遇到了 CASSANDRA-11850,其中 cqlsh 与 Python 2.7.11+ 中断.此票证已标记为已解决",并且已将补丁应用于尚未发布的 Cassandra 3.9.

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.

我相信我安装了所有必需的包,例如 java 8 和 python 2.7.12.

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

在此期间(直到 3.9 发布),您可以回滚到 Python 2.7.10,并且 cqlsh 应该可以工作(并非微不足道).否则,DataStax DevCenter 应该适用于 Cassandra 3.7.

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.

编辑 20161020

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

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

这篇关于cqlsh 连接错误:'ref() 不接受关键字参数'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆