我使用 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 读取和创建表
最佳答案
尝试 path/to/cqlsh HOST
在您的场景中HOST = 127.0.0.1
关于java - 连接错误 : TypeError ('ref() does not take keyword arguments' , )}),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48782455/