在 MacOS 上的 vagrant 虚拟机中连接到 aerospike 运行

Connect to aerospike running in a vagrant vm on MacOS

我按照上述步骤在我的 Mac - https://www.aerospike.com/docs/operations/install/vagrant/mac/index.html 上安装了 aerospike 我可以在我的系统上打开 AMC 控制台,但我无法通过我的 Java aerospike 客户端

连接到 aerospike

我正在 Java 代码中创建我的 AerospikeClient,如下所示。

new AerospikeClient("172.28.128.3", 8081);

低于错误。谁能告诉我问题出在哪里。

Factory method 'aerospikeClient' threw exception; nested exception is com.aerospike.client.AerospikeException$Connection: Error Code 11: Failed to connect to host(s): 
172.28.128.3 8081 java.io.EOFException

尝试连接到 port 3000,而不是 8081。那个只允许 AMC 从 macOS 端连接到集群。

安装适用于 macOS 的 tools package 并尝试以下操作:

asinfo -h "172.28.128.3" -v version