AEROSPIKE_ERR_CONNECTION错误的文件描述符,127.0.0.1:3000;无法从aql连接到本地节点

问题描述 投票:1回答:3

我已经在我的mac上安装了aerospike我跟随这个installation steps

所有验证工作正常。我可以使用浏览器chrome连接到群集。以下是截图。

我还按照here的说明安装了AQL工具。

single node aerospike cluster

但是我无法从aql连接到本地节点。

$ aql
2017-11-21 16:06:09 WARN Failed to connect to seed 127.0.0.1 3000. 
AEROSPIKE_ERR_CONNECTION Bad file descriptor, 127.0.0.1:3000
Error -1: Failed to connect

$ asadm
Aerospike Interactive Shell, version 0.1.11
ERROR: Not able to connect any cluster.

另外,我注意到Java客户端出错了。

AerospikeClient client = new AerospikeClient("localhost", 3000);

当我将localhost更改为vagrant ssh -c "ip addr"|grep 'global eth1'返回的实际IP时,它工作正常。

如何使用客户参数连接aql?我想将ip地址和端口作为参数传递给aql。有什么建议。

aerospike
3个回答
4
投票
$ aql --help

https://www.aerospike.com/docs/tools/aql/index.html  - discusses all various command line options.

$ aql -h a.b.c.d -p 1234

0
投票

还有另一种可能性,你拥有自己的端口而不是默认的3000,所以当你尝试连接到aerospike时,你可以尝试运行如下命令:aql -p4000

希望这可以帮到你


0
投票

似乎端口即使在退出流浪者控制台后也没有被释放。

尝试关闭所有终端窗口,然后重新开始。但没有运气。

最后,重新启动系统解决了问题。

© www.soinside.com 2019 - 2024. All rights reserved.