Git Product home page Git Product logo

Comments (8)

BrianNichols avatar BrianNichols commented on June 26, 2024

"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.

keshav10kumar avatar keshav10kumar commented on June 26, 2024

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.

BrianNichols avatar BrianNichols commented on June 26, 2024

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.

keshav10kumar avatar keshav10kumar commented on June 26, 2024

Please find below details:

 System                                                          client seeds (hostnames/IP addresses)                        Port
  1. System A 192.168.207.149 3020
  2. 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.

BrianNichols avatar BrianNichols commented on June 26, 2024

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.

keshav10kumar avatar keshav10kumar commented on June 26, 2024

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.

BrianNichols avatar BrianNichols commented on June 26, 2024

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.

keshav10kumar avatar keshav10kumar commented on June 26, 2024

Thank you Brian, After setting access address now its working.

from aerospike-client-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.