79830109

Date: 2025-11-25 19:30:49
Score: 1
Natty:
Report link

I am trying to start ignite inside my JVM on 2 machines.
Code:

Path configPath = Path.of("ignite-config.conf");
String pathString = "C:\\work";
Path workDir = Paths.get(pathString);

IgniteServer node1 = IgniteServer.start("node1", configPath, workDir);

System.out.println("Started node1");

InitParameters initParameters = InitParameters.builder()
        .metaStorageNodeNames("node1")
        .clusterName("cluster")
        .build();
node1.initCluster(initParameters);
Path configPath = Path.of("ignite-config.conf");
String pathString = "C:\\work";
Path workDir = Paths.get(pathString);

IgniteServer node2 = IgniteServer.start("node2", configPath, workDir);

System.out.println("Started node2");

InitParameters initParameters = InitParameters.builder()
        .metaStorageNodeNames("node2")
        .clusterName("cluster")
        .build();
node1.initCluster(initParameters);

Conf file:

ignite {
    network {
        nodeFinder {
            netClusterNodes=[
                "node1:3344",
                "node2:3344"
            ]
            type=STATIC
        }
        port=3344
    }
}
ignite {
    network {
        nodeFinder {
            netClusterNodes=[
                "node1:3344",
                "node2:3344"
            ]
            type=STATIC
        }
        port=3344
    }
}

when I am trying to start 2nd node on machine 2 it is giving error

org.apache.ignite.internal.cluster.management.InitException: IGN-CMN-65535 Unable to initialize the cluster: Node "node1" is not present in the physical topology TraceId:ed46d1c7
    at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
    at org.apache.ignite.internal.util.ExceptionUtils$8.copy(ExceptionUtils.java:1027)
    at org.apache.ignite.internal.util.ExceptionUtils$ExceptionFactory.createCopy(ExceptionUtils.java:873)
    at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:675)
    at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCauseInternal(ExceptionUtils.java:808)
    at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:653)
    at org.apache.ignite.internal.app.IgniteServerImpl.tryToCopyExceptionWithCause(IgniteServerImpl.java:543)
    at org.apache.ignite.internal.app.IgniteServerImpl.sync(IgniteServerImpl.java:535)
    at org.apache.ignite.internal.app.IgniteServerImpl.initCluster(IgniteServerImpl.java:226)
    at org.example.Main.main(Main.java:38)
Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ankit Lunawat