我无法执行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")})谢谢你,卡萨克
发布于 2020-03-30 04:01:54
您的listen_address和broadcast_address的值是什么
$ grep _address conf/cassandra.yaml | grep -v "\#"
listen_address: 169.254.93.1
rpc_address: 169.254.93.1在我的示例中,169.254.93.1是Cassandra将在端口9042上绑定的唯一地址。因此,仅运行cqlsh (不指定IP)仅在它们映射到127.0.0.1或localhost的主IP时才起作用。
因此,我需要指定要连接的169.254.93.1。
$ bin/cqlsh 169.254.93.1 -u flynn -p reindeerFlotilla
Connected to TheGrid at 169.254.93.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.4 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
flynn@cqlsh>https://stackoverflow.com/questions/60902763
复制相似问题