You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vkulichenko <va...@gmail.com> on 2016/08/19 04:27:31 UTC

Re: Local node's cache affinity assignment mode differs from the same property on remote node

Hi,

Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. To subscribe, send empty
email to user-subscribe@ignite.apache.org and follow simple instructions in
the reply.


twisterius wrote
> I am trying to run ignite (1.6) via spark (1.6) over yarn. I am receiving
> the following exception. Local node's cache affinity assignment mode
> differs from the same property on remote node (make sure all nodes in
> topology have the same cache affinity assignment mode). Does anyone know
> what the cause may be.

Please provide the whole message and any configuration files you're using in
your cluster.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Local-node-s-cache-affinity-assignment-mode-differs-from-the-same-property-on-remote-node-tp7158p7160.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Local node's cache affinity assignment mode differs from the same property on remote node

Posted by vkulichenko <va...@gmail.com>.
Hi,

Most likely this happens because you have nodes of different version (1.6
and 1.7) trying to join the same cluster. Can you check this?

If that's not the case, please attach full log files from all nodes you
have.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Local-node-s-cache-affinity-assignment-mode-differs-from-the-same-property-on-remote-node-tp7158p7181.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Local node's cache affinity assignment mode differs from the same property on remote node

Posted by twisterius <gr...@gmail.com>.
Below is the config, the ip address has been removed
<?xml version="1.0" encoding="UTF-8"?>



<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
                            META-INF/spring-beans.xsd">
							
							
							
    <bean class="org.apache.ignite.configuration.IgniteConfiguration">
	

 <property name="cacheConfiguration">
        <bean class="org.apache.ignite.configuration.CacheConfiguration">
            
            <property name="name" value="cacheName"/>
            
            
            <property name="cacheMode" value="REPLICATED"/>

        </bean>
    </property>
	

	
	 <property name="gridName" value="grid"/>
	<property name="workDirectory" value="/tmp"/>



        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    
                    
        <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                  <property name="addresses">
                              <list>
                                            
              <value>XXX.XX.XXX.XXX</value> <!--
              </list>
              </property>
                       </bean>
                </property>
              
                <property name="joinTimeout" value="60000"/>
            </bean>
        </property>
    </bean>
</beans>

And here is the trace back

16/08/19 10:23:16 WARN scheduler.TaskSetManager: Lost task 0.0 in stage 0.0
(TID 0, hiddenhostname.net): class org.apache.ignite.IgniteException: Failed
to start manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
        at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:906)
        at org.apache.ignite.Ignition.getOrStart(Ignition.java:417)
        at
org.apache.ignite.spark.IgniteContext.ignite(IgniteContext.scala:144)
        at
org.apache.ignite.spark.IgniteRDD$$anonfun$savePairs$1.apply(IgniteRDD.scala:171)
        at
org.apache.ignite.spark.IgniteRDD$$anonfun$savePairs$1.apply(IgniteRDD.scala:170)
        at
org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$33.apply(RDD.scala:920)
        at
org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1$$anonfun$apply$33.apply(RDD.scala:920)
        at
org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1869)
        at
org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1869)
        at
org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
        at org.apache.spark.scheduler.Task.run(Task.scala:89)
        at
org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
manager: GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
        at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1536)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:897)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1736)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1589)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1042)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:569)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:530)
        at org.apache.ignite.Ignition.getOrStart(Ignition.java:414)
        ... 13 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000,
reconCnt=10, maxAckTimeout=600000, forceSrvMode=false,
clientReconnectDisabled=false]
        at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:258)
        at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:677)
        at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1531)
        ... 20 more
Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node's
cache affinity assignment mode differs from the same property on remote node
(make sure all nodes in topology have the same cache affinity assignment
mode) [locLateAssign=false, rmtLateAssign=true,
locNodeAddrs=[hiddenhostname.nett/10.10.244.152,
hiddenhostname.net/127.0.0.1, /ZZ.ZZ.ZZZ.ZZZ], locPort=47500,
rmtNodeAddr=[hiddenhostname.net/10.10.233.75, hiddenhostname.net/127.0.0.1,
/169.84.230.105], locNodeId=59cf30b7-f51d-462d-9ef2-21771f100a34,
rmtNodeId=f9a96896-346e-465c-a9d6-da3b32768607]
        at
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1644)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:885)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:334)
        at
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1832)
        at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:255)
        ... 22 more






--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Local-node-s-cache-affinity-assignment-mode-differs-from-the-same-property-on-remote-node-tp7158p7170.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.