连接到MacOS上的vagrant vm中运行的aerospike

时间:2018-05-10 08:03:20

标签: java macos aerospike

我按照上述步骤在Mac上安装了aerospike - https://www.aerospike.com/docs/operations/install/vagrant/mac/index.html  我可以在我的系统上打开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

1 个答案:

答案 0 :(得分:2)

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

为macOS安装tools package并尝试以下操作:

asinfo -h "172.28.128.3" -v version
相关问题