Cassandra 卡桑德拉安装';模块';对象没有属性';减压
在Ubuntu19.04上安装Cassandra 3.11版本后,一旦我发出命令Cassandra 卡桑德拉安装';模块';对象没有属性';减压,cassandra,cassandra-3.0,ubuntu-19.04,Cassandra,Cassandra 3.0,Ubuntu 19.04,在Ubuntu19.04上安装Cassandra 3.11版本后,一旦我发出命令cqlsh root@dnilesh:/etc/cassandra# cqlsh Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError('Unexpected response during Connection setup: AttributeError("\'module\' object has no
cqlsh
root@dnilesh:/etc/cassandra# cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError('Unexpected response during Connection setup: AttributeError("\'module\' object has no attribute \'decompress\'",)',)})
Cassandra服务已启动并正在运行,但无法连接cqlsh终端。您可以尝试使用
cqlsh[ip地址]
(将括号替换为主机的ip地址)或cqlsh$(主机名)
(无需替换)对我来说,这是有效的:
$ export CQLSH_NO_BUNDLED=true
$ cqlsh
在上一次cqlsh之后,出现了一个缺少cassandra驱动程序的问题,并且通过sudo pip安装。。。没有工作,我必须切换到root用户
$ sudo su
# pip install cassandra-driver
# cqlsh
由该委员会工作:导出CQLSH\u NO\u BUNDLED=true