我正在尝试启动cqlsh,但出现了以下错误:
/bin$ ./cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1':
OperationTimedOut('errors=None, last_host=None',)})
我尝试删除了~/.cassandra,但没有起作用。我还将cassandra.yaml与正常工作的版本进行了比较。
有什么想法吗?
根据您的版本和配置,请检查您在cassandra.yaml
中指定的listen_address
和/或rpc_address
的值。如果它们被定义为除了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>