Cassandra安装“模块”对象没有属性“解压缩”

时间:2019-08-23 09:40:10

标签: cassandra cassandra-3.0 ubuntu-19.04

在ubuntu 19.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 attribute \'decompress\'",)',)})

Cassandra服务已启动并正在运行,但无法连接cqlsh终端。

2 个答案:

答案 0 :(得分:1)

这对我来说很有效:

$ export CQLSH_NO_BUNDLED=true
$ cqlsh

在上一次cqlsh之后,缺少cassandra驱动程序出现了问题,并且通过sudo pip安装...不起作用,我不得不切换到root用户!

$ sudo su
# pip install cassandra-driver
# cqlsh 

答案 1 :(得分:0)

您可以尝试使用create table tmp(word VARCHAR2(4000), lvl NUMBER); insert into tmp2 values('python',1); insert into tmp2 values('java',2); select listagg(word,' ') within group(order by lvl) as listagg_output from tmp; (将方括号替换为主机的IP地址)或cqlsh [ip address](无需替换)