Getting Aerospike Error for Java Client

This is what i am getting when trying to set data in aerospike using a java client.

com.aerospike.client.AerospikeException$Timeout: Client timeout: timeout=0 iterations=3 failedNodes=3 failedConns=0 .

Can anyone please help me know what the reason behind it?

The client cannot connect to the nodes.

  1. Is the Aerospike cluster running?
asadm -h <IP OF NODE> -e info
  1. Is the client able to access port 3000 on the nodes.
nc -z -v -w5 <IP OF NODE1> 3000
nc -z -v -w5 <IP OF NODE2> 3000
nc -z -v -w5 <IP OF NODE3> 3000

On running : asadm -h -e info it displays the network information and the namespace information. So that means Aerospike Cluster is running.

But nc -z -v -w5 3000 gives command not found. I am using vagrant to run aerospike

  1. Could you provide the output of asadm?

  2. Is the client running from vagrant as well?

  3. I was trying to use netcat (nc) to verify that port 3000 was accessible from your client node, did asadm run from the same node as the client would run? If so it is using port 3000.

  1. asdm output : vagrant@localhost /]$ asadm -h 127.0.0.1 -e info
Network Information

             Node               Node                  Ip        Build   Cluster        Cluster     Cluster         Principal   Rackaware   Client     Uptime   
                .                 Id                   .            .      Size            Key   Integrity                 .        Mode    Conns          .   
172.28.128.3:3000   *BB901CC7A270008   172.28.128.3:3000   C-3.13.0.1         1   23ED10D5E1CA   True        BB901CC7A270008   none             8   35:26:22   
Number of rows: 1

Namespace Information

Namespace                Node   Avail%   Evictions                 Master                Replica     Repl     Stop             Pending         Disk    Disk     HWM          Mem     Mem    HWM      Stop   
        .                   .        .           .   (Objects,Tombstones)   (Objects,Tombstones)   Factor   Writes            Migrates         Used   Used%   Disk%         Used   Used%   Mem%   Writes%   
        .                   .        .           .                      .                      .        .        .             (tx,rx)            .       .       .            .       .      .         .   
FLIGHT      172.28.128.3:3000   99         0.000     (0.000,  0.000)        (0.000,  0.000)        1        false    (0.000,  0.000)       0.000 B    0       50        0.000 B    0       60     90        
FLIGHT                                     0.000     (0.000,  0.000)        (0.000,  0.000)                          (0.000,  0.000)       0.000 B                      0.000 B                             
test        172.28.128.3:3000   99         0.000     (2.000,  0.000)        (0.000,  0.000)        1        false    (0.000,  0.000)     384.000 B    1       50      190.000 B    1       60     90        
test                                       0.000     (2.000,  0.000)        (0.000,  0.000)                          (0.000,  0.000)     384.000 B                    190.000 B                             
Number of rows: 4
  1. Yes the client is running on vagrant as well. As i am configuring aerospike on my local system using vagrant

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.