Re: Problem in forming cluster with multi-jvm in single machine

2016-12-01 Thread vkulichenko
Hi,

First of all, remove the ipFinder.setShared(true); line. With this nodes
will join each other if VmIpFinder is used.

If this doesn't help, please look through the logs and check which address
and port discovery binds to and compare it to address you provide in IP
finder. This should give you some pointers. You can also attach the logs
here, we will try to assist.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Problem-in-forming-cluster-with-multi-jvm-in-single-machine-tp9327p9349.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Problem in forming cluster with multi-jvm in single machine

2016-12-01 Thread hitansu
I have written a program to start ignite in separate jvms to form a
cluster.It is starting the Ignite,but could not form a cluster. It is
printing following log.
  Failed to connect to any address from IP finder (will retry to join
topology every 2 secs): [/10.150.113.61:47500]

Below is my IgniteConfiguration setting.

TcpDiscoverySpi discoSpi = new TcpDiscoverySpi();
TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
String hostAddress = InetAddress.getLocalHost().getHostAddress();
List address= Arrays.asList(hostAddress);
//String portRangeStr= "5701-5800";
String portRangeStr= "47500-47509";
String[] portRange = portRangeStr.replace(" ", "").split("-");

  discoSpi.setLocalPortRange(Integer.parseInt(portRange[1]) -
Integer.parseInt(portRange[0]) + 1);

discoSpi.setLocalPort(Integer.parseInt(portRange[0]));


 ipFinder.setAddresses(address);
 ipFinder.setShared(true);
//  ipFinder.setAddresses(Collections.singletonList("0.0.0.0:5701..5800")); 
// 
ipFinder.setAddresses(Collections.singletonList("192.168.127.1:5701..5800"));

   discoSpi.setIpFinder(ipFinder);

I want to start ignite in separate jvm to emulate the real cluster.





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Problem-in-forming-cluster-with-multi-jvm-in-single-machine-tp9327.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.