【发布时间】:2018-07-24 17:55:28
【问题描述】:
我正在使用 ubantu 16.04 和 Cassandra,同时在终端上调用“cqlsh”命令时出现错误。
Connection error: ('Unable to connect to any servers', {'127.0.0.1':TypeError('ref() does not take keyword arguments',)})
当 Nodetool 状态启动并运行时
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 270.72 KiB 256 100.0% 89a6fc91-1e25-41bf-b633-95b53292a2b3 rack1
我检查了这个错误,发现与 ubantu 16.04 中默认的 python 2.7.12 的兼容性问题。
在运行 find 之前,它突然开始询问我对 cassandra 日志的读写权限,之后它正在运行但 cqlsh 无法正常工作。
但我可以从 eclipse 中读取和创建表格
【问题讨论】: