我刚刚开始使用Cassandra (自制安装)、版本3.7和cqlsh版本5.0.1。,OS X El Capitan
卡桑德拉启动良好,集群立即投入运行。
Cqlsh无法工作(在任何节点上),并发出以下错误:
连接错误:(“无法连接到任何服务器”,{'127.0.0.1':错误(61,“尝试连接到('127.0.0.1',9042)。最后一个错误:连接被拒绝”))
我刚刚通过终端运行以下命令,在我的Mac OS X上安装了cql和cassandra:
pip install cql
pip install cassandra-driver
brew install cassandra
然后我通过运行brew services start cassandra启动了cassandra。然后我尝试运行cqlsh,但返回了以下错误:
Connection error: ('Unable to connect to any servers', {'127.0.0.1': TypeError('ref() does not t
在ubuntu19.04上安装Cassandra3.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 attribut
我刚刚在MacOSX10.9.4上使用brew安装了Cassandra:
➜ ~ brew info cassandra
cassandra: stable 2.1.0
http://cassandra.apache.org
/usr/local/Cellar/cassandra/2.0.9 (3466 files, 79M) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/cassandra.rb
==> Caveats
If you plan
我无法执行cqlsh命令。我是卡桑德拉的新人。我已经遵循了前面的帖子。仍无法执行cqlsh命令。请帮我弄清楚这个问题。这是我运行CQLSH时的错误, [root@Kar bin]# cqlsh
Connection error: ('Unable to connect to any servers',
{'127.0.0.1': error(111,
"Tried connecting to [('127.0.0.1', 9042)].
Last error: Connection refused")
卡桑德拉认证器出错了。在更改cassandra.yaml文件中的值"authenticator“后,cqlsh返回此错误:
Connection error: (‘Unable to connect to any servers’, {’127.0.0.1’: AuthenticationFailed(‘Failed to authenticate to 127.0.0.1: Error from server: code=0100 [Bad credentials] message=“org.apache.cassandra.exceptions.UnavailableExcepti
有一些可以帮助我,为什么我要面对下面的问题,以及如何修复当我试图启动我的cqlsh (卡桑德拉)。
Connection error: ('Unable to connect to any servers',
{'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)].
Last error: Connection refused")})
当我键入以下命令时:
sudo service cassandra status
cassandra (pid
在我的Mac上,我使用的是cqlsh版本5.0.1
在我的Ubuntu上,我也使用了cqlsh 5.0.1
(均使用which cqlsh查询)
我在这两个框上运行以下命令(都在本地有一个cassandra实例)
cqlsh --request-timeout=30 -k authks 127.0.0.1 -e "copy users to 'users.tmp.csv' with escape='\"' and null='null' and maxrequests=2 and INGESTRATE=10000 and CHUN
我安装了cassandra并运行cqlsh:
Connected to Test Cluster at localhost:9160.
[cqlsh 4.1.1 | Cassandra 2.0.10 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
并在cqlsh上输入清除命令。但我有这个
cqlsh> clear;
Bad Request: line 1:0 no viable alternative at input 'clear'
cqlsh> clear
... ;
Bad R
当我建造和运行码头集装箱时,我发现了非常奇怪的行为。我想要卡桑德拉和ssh的集装箱。在我的Dockerfile里我有:
RUN echo "deb http://www.apache.org/dist/cassandra/debian 20x main" | sudo tee -a /etc/apt/sources.list
RUN echo "deb-src http://www.apache.org/dist/cassandra/debian 20x main" | sudo tee -a /etc/apt/sources.list
RUN gpg --ke
在Ubuntu 14.04上使用DataStax4.8.11 Cassandra 2.1.17,一切都很好,但突然不能正常工作。cqlsh无法连接到服务器。我正在成功地启动dse和datastax-agent,它们运行得很好,包括cassandra。
@ubuntu:~$ cqlsh
Connection error: ('Unable to connect to any servers', {'192.168.254.143': error(113, "Tried connecting to [('192.168.254.143'
我使用一个节点Cassandra和我打算运行一些查询,以检查响应时间。在某些查询中,在执行10s后,我会出现以下错误:
OperationTimedOut: errors = {}, last_host = 127.0.0.1
因此,我运行了以下命令:
sudo gedit /usr/bin/cqlsh.py
并更改了cqlsh.py文件:
# cqlsh should run correctly when run out of a Cassandra source tree,
# out of an unpacked Cassandra tarball, and after a proper