【问题标题】:Connection error: TypeError('ref() does not take keyword arguments',)}) [duplicate]连接错误:TypeError('ref()不接受关键字参数',)})[重复]
【发布时间】: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 中读取和创建表格

【问题讨论】:

    标签: java python cassandra


    【解决方案1】:

    试试path/to/cqlsh HOST

    在你的场景HOST = 127.0.0.1

    【讨论】:

    • 我已经尝试过,但事情不正常 cqlsh 127.0.0.1 连接错误:('无法连接到任何服务器',{'127.0.0.1':TypeError('ref()不带关键字论据',)})
    • 我认为真正的问题不是它不能解决地址,而是发生了一些不同的事情
    • Cassandra 版本是什么?
    • cassandra 版本是 3.6
    猜你喜欢
    • 2017-02-03
    • 2016-12-01
    • 1970-01-01
    • 2020-05-17
    • 2015-02-14
    • 2015-08-18
    相关资源
    最近更新 更多