我安装了 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/