Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra 卡桑德拉安装';模块';对象没有属性';减压_Cassandra_Cassandra 3.0_Ubuntu 19.04 - Fatal编程技术网

Cassandra 卡桑德拉安装';模块';对象没有属性';减压

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

在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 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