java - AerospikeException while writing record to Aerospike namespace hosted on Google Cloud -


i'm trying write record using java aerospikeclient on aerospike namespace hosted on google compute engine. getting following exception:

todo: write user recordaerospikeexception - message: client timeout: timeout=0 iterations=2 failednodes=2 failedconns=0 lastnode=null aerospikeexception - stacktrace: com.aerospike.client.aerospikeexception$timeout: client timeout: timeout=0 iterations=2 failednodes=2 failedconns=0 lastnode=null @ com.aerospike.client.command.synccommand.execute(synccommand.java:129) @ com.aerospike.client.aerospikeclient.put(aerospikeclient.java:299) @ com.aerospike.developer.training.userservice.createuser(userservice.java:126) @ com.aerospike.developer.training.program.work(program.java:120) @ com.aerospike.developer.training.program.main(program.java:67)

i have used external , internal ip of compute engine instance create new aerospikeclient("compute_engine_ip",3000) same error. need fix error

this exception indicative of connection issue between client , server on port 3000.

please double check network configuration interface address , access-address settings in aerospike.conf.

aerospike network configuration

you may able check ips being published clients running following commands on server nodes.

asinfo -v services 

and

asinfo -v service 

one of ips in list provided above command should match ip addresses configured on client.

its possible client using old seed server ip address while new cluster has different ip addresses.

it may useful modify clientpolicy , set failifnotconnected=true on client immediate failure in case of issue seed server :

http://www.aerospike.com/apidocs/java/com/aerospike/client/policy/clientpolicy.html#failifnotconnected


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -