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

Reply via email to