Aerospike on Azure

Hi,

In order to do some testing I created an Azure VM containing Aerospike. I use the C# client to connect but I always get the following error:

2015-08-10 12:50:00 1 ERROR Exception occurred while testing Aerospike. [Exception: Aerospike.Client.AerospikeException+Connection: Error Code 11: Failed to connect to host(s): 40.113.125.60:3000 Error Code 11: No connection could be made because the target machine actively refused it 40.113.125.60:3000 at Aerospike.Client.Cluster.SeedNodes(Boolean failIfNotConnected) at Aerospike.Client.Cluster.Tend(Boolean failIfNotConnected) at Aerospike.Client.Cluster.WaitTillStabilized(Boolean failIfNotConnected) at Aerospike.Client.Cluster.InitTendThread(Boolean failIfNotConnected) at BTTester.Program.TestAerospike()]

I use the following command to connect:

AerospikeClient client = new AerospikeClient(new ClientPolicy() { user = “USERNAME”, password = “PASSWORD”, timeout = 5000 }, “AZURE-IP”, 3000)

Can anyone provide any help with this setup?

Regards,

Erwin

This looks like a firewall/network issue. Do you have port 3000 open? Check the endpoints on the VM:

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/

1 Like

Hi,

The problem has been solved. I assumed that the Aerospike service was automatically started if the VM was launched. It appears that it was not so I had to start Aerospike manually. After that, the connection was working perfectly.

Regards,

Erwin

2 Likes

Hi Erwin, how did you started the service? I’m totally newbie with Aerospike

Hi Warnov,

I connected to the Virtual Machine using Putty. Once logged in, use the following command:

sudo /etc/init.d/aerospike start

To check whether the service is running correct you can use the following command:

sudo /etc/init.d/aerospike status

The output should be:

 * asd is running

Regards,

Erwin