installation - CentOS 7.2 上的 Cassandra 安装没有 cqlsh

标签 installation cassandra-2.0 centos7 cqlsh

我安装了 cassandra,但没有看到 cqlsh。我有 anaconda,所以我从中安装了 cqlsh

pip install cqlsh 
Successfully installed cqlsh-5.0.3

当我尝试连接到 cassandra 时,出现此错误

[idf@node1 sbin]$ cqlsh 10.0.0.60
Connection error: ('Unable to connect to any servers', {'10.0.0.60': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.1.7']",)})

[idf@node1 sbin]$ cqlsh 10.0.0.60 9160
Connection error: ('Unable to connect to any servers', {'10.0.0.60': ConnectionShutdown('Connection <AsyncoreConnection(140356880106448) 10.0.0.60:9160 (closed)> is already closed',)})
[idf@node1 sbin]$ 

在哪里可以找到 datastax 中 cassandra 附带的 cqlsh?或者如果上面的方法应该有效,我需要做什么?

最佳答案

尝试像这样连接:

$ cqlsh 10.0.0.60 9042 -u -p --cqlversion="3.1.7"

关于installation - CentOS 7.2 上的 Cassandra 安装没有 cqlsh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36503903/

相关文章:

python-2.7 - Matplotlib 无法使用 Python 2.7.3 在 Mac OS 10.8.2 上安装

installation - Macos Sierra 上的 Adob​​e Creative Suite 5 (CS5.5) 安装

docker - 如何解决 "unable to prepare context: path "."not found"docker build 的错误?

ssl - 无法初始化类 io.netty.handler.time out.IdleStateEvent

apache - 运行时错误 : populate() isn't reentrant on CentOS 7 | django 1. 9 | python 3

ssl - CentOS7:您是否尝试在没有 TLS 的情况下连接到支持 TLS 的守护进程?

python - 在 Ubuntu 上,如何安装更新版本的 python 并保留旧版本的 python?

linux - 如何在 Fedora 21 上安装 Plasma 5?

cql3 - Astyanax Cassandra double 型

cassandra - YCSB for Cassandra 3.0 基准测试