ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josephine Barboza <josephine.barb...@nviz.com>
Subject RE: Node unable to join cluster
Date Wed, 22 Nov 2017 11:43:01 GMT
Hi Denis,

After adding the localAddress in TcpDiscoverySpi, the node is still not starting. It fails
with the below log messages

2017-11-22 11:25:36  [localhost-startStop-1] DEBUG TcpDiscoverySpi:452 - Handshake response
from local node: TcpDiscoveryHandshakeResponse [order=0, super=TcpDiscoveryAbstractMessage
[sndNodeId=null, id=089b073ef51-41a2ab42-639c-48f0-ad36-b75cd625939a, verifierNodeId=null,
topVer=0, pendingIdx=0, failedNodes=null, isClient=false]]
2017-11-22 11:25:36  [localhost-startStop-1] DEBUG TcpDiscoverySpi:452 - Failed to send join
request message [addr=/, msg=Failed to send message to address [addr=/,
msg=TcpDiscoveryJoinRequestMessage [node=TcpDiscoveryNode [id=41a2ab42-639c-48f0-ad36-b75cd625939a,
addrs=[0:0:0:0:0:0:0:1%lo,,,], sockAddrs=[/,
/0:0:0:0:0:0:0:1%lo:1510, /, /], discPort=1510, order=0, intOrder=0,
lastExchangeTime=1511349337034, loc=true, ver=2.1.0#20170720-sha1:a6ca5c8a, isClient=false],
dataPacket=org.apache.ignite.spi.discovery.tcp.internal.DiscoveryDataPacket@432a7606, super=TcpDiscoveryAbstractMessage
[sndNodeId=null, id=343b073ef51-41a2ab42-639c-48f0-ad36-b75cd625939a, verifierNodeId=null,
topVer=0, pendingIdx=0, failedNodes=null, isClient=false]]]]

Below is my configuration

          // Comm spi
          TcpCommunicationSpi commSpi = new TcpCommunicationSpi();

    // IP Finder
          TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
          String[] addresses = {“”}; // This is the public IP of my VM
which has two ports open 1510 and 1511

          // Discovery SPI
    TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();

          // Address Resolver
          Map<String, String> addrMap = new Hashmap<>();
          addrMap.put(“”, “”);

    AddressResolver addrResolvr = new BasicAddressResolver(addrMap);


I am still unable to start a local node if I use the public IP in IPFinder.
What could be the issue here?

From: Denis Mekhanikov [mailto:dmekhanikov@gmail.com]
Sent: Tuesday, November 21, 2017 6:15 PM
To: user@ignite.apache.org
Subject: Re: Node unable to join cluster

Hi Josephine!

Make sure, that TcpDiscoveryVmIpFinder has address of the local node on the list.
Otherwise the first node won't be able to start, because discovery SPI won't find any nodes.

Also note, that TcpDiscoverySpi has localAddress and localPort properties. Try setting them
according to your public IP and port.

Refer to this page for more information: https://apacheignite.readme.io/docs/cluster-config


вт, 21 нояб. 2017 г. в 15:11, Josephine Barboza <josephine.barboza@nviz.com<mailto:josephine.barboza@nviz.com>>:

I have setup ignite instances on two different VMs and I’m trying to create a cluster using
Static IP discovery using TcpDiscoveryVmIpFinder.
I have a couple of questions:

  1.  Do I need to give loopback address or public IP for the node to start before trying
to connect to the other node in the cluster? What is the recommended configuration for production?
  2.  When I give loopback address/private IP it works(node starts before trying the connect
to other node) but when I give the public IP it does not. Both the ports for discoverySpi
and commSpi are open on the public IP and I have used address resolver as well to map the
private IP to the public IP. Is there any other configuration required?
  3.  Facing the same issue as mentioned in point 2 while connecting to the node on the second
VM where in spite of using address resolver the node is unable to join the topology.


IMPORTANT NOTICE: This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If you have received
this email in error, please notify the system manager and/or the sender immediately.
View raw message