Comments (8)
"Partition map empty" means the java client can't connect/retrieve the server's partition map. Subscribe to the client log to see the cluster tend errors that resulted in this transaction exception. See https://developer.aerospike.com/client/logging
from aerospike-client-java.
Hello please find the logs for both scenario.
Case 1: ( Not Working ) ---------------------------------------------------------------------
11:57:13.530 [ajp-nio-0:0:0:0:0:0:0:0-8009-exec-1] INFO c.i.a.db.repo.as.ASRepo$LogCallBack.log 86 - LogCallBack running callback function message :Add node BCDDBB1AF565000 127.0.0.1 3020
11:57:13.531 [ajp-nio-0:0:0:0:0:0:0:0-8009-exec-1] INFO c.i.a.db.repo.as.ASRepo$LogCallBack.log 86 - LogCallBack running callback function message :Remove node BCDDBB1AF565000 127.0.0.1 3020
11:57:13.544 [tend] INFO c.i.a.db.repo.as.ASRepo$LogCallBack.log 86 - LogCallBack running callback function message :Node BCDDBB1AF565000 127.0.0.1 3020 refresh failed: com.aerospike.client.AerospikeException: Error -1: Node name has changed. Old=BCDDBB1AF565000 New=BCD4BDE85565000
at com.aerospike.client.cluster.Node.verifyNodeName(Node.java:304)
at com.aerospike.client.cluster.Node.refresh(Node.java:242)
at com.aerospike.client.cluster.NodeValidator.validatePeers(NodeValidator.java:107)
at com.aerospike.client.cluster.NodeValidator.seedNode(NodeValidator.java:75)
at com.aerospike.client.cluster.Cluster.seedNode(Cluster.java:559)
at com.aerospike.client.cluster.Cluster.tend(Cluster.java:476)
at com.aerospike.client.cluster.Cluster.run(Cluster.java:443)
at java.lang.Thread.run(Thread.java:750)
Case 2: ( Working ) ------------------------------------------------------------------------------
12:16:14.316 [ajp-nio-0:0:0:0:0:0:0:0-8009-exec-1] INFO c.i.a.db.repo.as.ASRepo$LogCallBack.log 86 - LogCallBack running callback function message :Invalid address 127.0.0.1:3020. access-address is probably not configured on server.
12:16:14.320 [ajp-nio-0:0:0:0:0:0:0:0-8009-exec-1] INFO c.i.a.db.repo.as.ASRepo$LogCallBack.log 86 - LogCallBack running callback function message :Add node BCDDBB1AF565000 192.168.207.148 3020
Query :
In Both the cases from the logs its clear that its try to connect with "127.0.0.1 3020" (localhost) but in my configuration file only i configured to connect with "192.168.207.148 3020" . Its first try to connect with "127.0.0.1 3020" in both the cases ,Please let me know how to avoid to connect with "127.0.0.1 3020" behavior.
Thanks,
Keshav.
from aerospike-client-java.
Whats are the client seeds (hostnames/IP addresses)?
How many nodes should be in the cluster?
What are the IP addresses for each node in the cluster?
It looks like access-address needs to be configured in each of your server node configurations to an externally reachable IP address: https://docs.aerospike.com/server/operations/configure/network/general
from aerospike-client-java.
Please find below details:
System client seeds (hostnames/IP addresses) Port
- System A 192.168.207.149 3020
- System B 192.168.207.148 3020
A and B are 2 different Systems not cluster.
For System A( 192.168.207.149) General Network Configuration find below ,
network {
service {
address any
access-address 127.0.0.1
port 3020
}
heartbeat {
mode multicast
multicast-group 239.1.99.222
port 9920
address 127.0.0.1
interval 150
timeout 10
}
fabric {
address 127.0.0.1
port 3021
}
info {
port 3023
}
}
For System B( 192.168.207.148) General Network Configuration find below ,
network {
service {
address any
access-address 127.0.0.1
port 3020
}
heartbeat {
mode multicast
multicast-group 239.1.99.232
port 9920
address 127.0.0.1
interval 150
timeout 10
}
fabric {
address 127.0.0.1
port 3021
}
info {
port 3023
}
}
Please let me know if you need any other information.
Thanks.
from aerospike-client-java.
The access-address (currently 127.0.0.1) must be reachable from the client machine. Is the client running on the same machine as the server?
from aerospike-client-java.
Hii Brian
The access-address (currently 127.0.0.1) is reachable from the client machine. client and server both running on different machine. Client running on System A ( 192.168.207.149 ) server running on System B ( 192.168.207.148 ).
I am not sure you understood the problem Please allow me to explain you one more time.
we are trying to connect to a remote server( System B) , the connection fails when a different server is running on the local system(System A ) (that we are not trying to connect to)
System A ( 192.168.207.149 )
System B ( 192.168.207.148 )
Please let me know if you understand the issue or need some more information.
Thanks,
Keshav
+968 94301821
from aerospike-client-java.
On System A server config, set access-address to 192.168.207.149.
On System B server config, set access-address to 192.168.207.148.
from aerospike-client-java.
Thank you Brian, After setting access address now its working.
from aerospike-client-java.
Related Issues (20)
- Get namespaces/sets by AerospikeClient.
- Streaming support for batch operations HOT 2
- rename Record to AerospikeRecord HOT 1
- View screenshot link is broken HOT 1
- Type Erasure in 5.1.11 HOT 7
- Fully support surrogates symbol in Strings HOT 5
- Wrong condition for aeropsike client connectivity HOT 6
- Add RetryListener HOT 7
- Security contact? HOT 2
- Aerospike Cluster Peer Invalid Node Docker HOT 3
- Node name is null HOT 1
- Add support for findBySinceUpdate using since_update in metadata HOT 2
- What is the difference between `BatchRecordArrayListener` and `RecordArrayListener`? HOT 2
- How to make async queries faster? HOT 3
- java.lang.NullPointerException in AerospikeClient.put() HOT 4
- Setters for Spring HOT 2
- Enable releases in github HOT 2
- Problem reading Date type with client version 7.X HOT 2
- When compiling lua, the client discards the exception which has the lua compilation error details. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aerospike-client-java.