我正在尝试启动cqlsh,这就是我所得到的:
/bin$ ./cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1':
OperationTimedOut('errors=None, last_host=None',)})我试着移除~/.锡兰德拉,但没有起作用。我还将cassandra.yaml与有效的版本进行了比较。
有什么想法吗?
发布于 2015-06-10 12:55:49
根据您的版本和配置,检查为listen_address和/或rpc_address在cassandra.yaml中指定的值。如果它们被定义为localhost以外的任何东西,则需要在与cqlsh连接时提供该地址。
$ grep listen_address: /etc/cassandra/cassandra.yaml
listen_address: 210.156.89.15
$ cqlsh 210.156.89.15 -u aploetz -p aploetz
Connected to PermanentWaves at 210.156.89.15.
[cqlsh 5.0.1 | Cassandra 2.1.4 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
aploetz@cqlsh>发布于 2016-01-03 10:14:01
在这条旧的帖子上作为备忘录发布给其他人,因为到目前为止,我无法在没有调试的情况下找到解决这些症状的任何信息:
在一个缓慢测试集群中也遇到了同样的问题,我通过在control_connection_timeout () init中的cqlsh.py文件中设置一个缺失的cqlsh.py kwargs来解决这个问题。
在https://issues.apache.org/jira/browse/CASSANDRA-10959上打开问题并提供补丁方案
https://stackoverflow.com/questions/30751413
复制相似问题