Home > database >  GridGain node cannot be in one cluster with Ignite node
GridGain node cannot be in one cluster with Ignite node

Time:01-03

I was running local ignite(8.7.21) server in local below is the confirmation log that ignite server is up and running. however when I'm trying to connect from Java client facing below issue any idea ?

local server log:

Topology snapshot [ver=11, locNode=34f4abec, servers=1, clients=0, state=ACTIVE, CPUs=2, offheap=2.0GB, heap=6.0GB] ^-- Baseline [id=0, size=1, online=1, offline=0]

Issue:

Caused by: class org.gridgain.grid.internal.processors.nodevalidation.NodeValidationException: GridGain node cannot be in one cluster with Ignite node [locNodeAddrs=[machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1], rmtNodeAddrs=[ machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1]]

defualt-cache.xml from Java client

   <bean id="igniteBean"  abstract="true">
        <property name="discoverySpi">
            <bean >
                <property name="localPort" value="48500"/>
                <property name="localPortRange" value="5"/>
            </bean>
        </property>
    </bean>

default-xml which I used to start ignite server

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="private.ignite.cfg"  abstract="true">
        <property name="discoverySpi">
            <bean >
                <property name="localPort" value="48500"/>
                <property name="localPortRange" value="5"/>
            </bean>
        </property>
    </bean>

CodePudding user response:

Based on the IPs being the same I would surmise that you are running a GridGain java instance and an Ignite java instance on the same machine.
Use jps -v/jinfo to find all the java process running on the machine and shutdown the GridGain process.



IPs are the same:
 [locNodeAddrs=[machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1], rmtNodeAddrs=[ machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1]]

You can tell that whether the process is a GridGain/Ignite one using the classpath/startup location/logs

CodePudding user response:

Caused by: class org.gridgain.grid.internal.processors.nodevalidation.NodeValidationException: GridGain node cannot be in one cluster with Ignite node [locNodeAddrs=[machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1], rmtNodeAddrs=[ machine name/0:0:0:0:0:0:0:1, /10.136.68.128, /127.0.0.1]]

2 possible causes:

  • you are running Apache Ignite and GridGain edition at the same time
  • you are running different GridGain editions at the same time, like Community and Ultimate one.

Note that your grid version is 8.7.21 which means, it's not Ignite, but GridGain edition. Check that you are not running another grid in Kubernetes/Docker environments on your machine. This is something that happens to me, though.

Alternatively, configure static IpFinder explicitely:

<bean >
    <property name="ipFinder">
          <bean >
              <property name="addresses">
                 <list>
                    <value>localhost:48500..48509</value>
                 </list>
              </property>

             .... <your values>

             
           </bean>
    </property></bean>
  • Related