ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@apache.org>
Subject Re: Facing problem in examples.
Date Mon, 19 Jun 2017 12:40:47 GMT
That’s the issue

> Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node's
> binary configuration is not equal to remote node's binary configuration
> [locNodeId=b3f0367d-3c2b-47b4-865f-a62c656b5d3f,
> rmtNodeId=556a3f41-eab1-4d9f-b67c-d94d77ddd89d,
> locBinaryCfg={globIdMapper=org.apache.ignite.binary.BinaryBasicIdMapper,
> compactFooter=false, globSerializer=null}, rmtBinaryCfg=null]

You need to add the following to your config

<property name="binaryConfiguration">
            <bean class="org.apache.ignite.configuration.BinaryConfiguration">
                <property name="compactFooter" value="false"/>

                <property name="idMapper">
                    <bean class="org.apache.ignite.binary.BinaryBasicIdMapper">
                        <property name="lowerCase" value="true"/>
                    </bean>
                </property>

                <property name="nameMapper">
                    <bean class="org.apache.ignite.binary.BinaryBasicNameMapper">
                        <property name="simpleName" value="true"/>
                    </bean>
                </property>

               
            </bean>
        </property>

Read more here:
https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability#section-defining-cross-platform-type

—
Denis

> On Jun 19, 2017, at 6:19 AM, Rahul.S <rahul.s@tayana.in> wrote:
> 
> Hi Denis,
> Here is the configuration that i am using, this configuration is used in
> both 235 and 26 server, where my C++ application is running in 235.
> In this case i have made the 26 node up and then i am starting the 235 C++
> application node.
> below after this configurations I have pasted the logs...
> 
> 
> [xyz@V235-Dev putget-example]$ cat config/example-cache.xml
> <?xml version="1.0" encoding="UTF-8"?>
> 
> 
> 
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:util="http://www.springframework.org/schema/util"
>       xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
>        http://www.springframework.org/schema/beans/spring-beans.xsd
>        http://www.springframework.org/schema/util
>        http://www.springframework.org/schema/util/spring-util.xsd">
>    <bean id="grid.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
> 
>        <property name="peerClassLoadingEnabled" value="false"/>
> 
> 
>        <property name="cacheConfiguration">
>            <list>
> 
>                <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>                    <property name="name" value="MyCache"/>
>                    <property name="atomicityMode" value="ATOMIC"/>
>                    <property name="backups" value="1"/>
>                </bean>
> 
> 
>                <bean
> class="org.apache.ignite.configuration.CacheConfiguration">
>                    <property name="name" value="tx"/>
>                    <property name="atomicityMode" value="TRANSACTIONAL"/>
>                    <property name="backups" value="1"/>
>                </bean>
>            </list>
>        </property>
> 
> 
>        <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>10.0.2.235</value>
>                                  <value>10.0.2.26</value>
>                            </list>
>                        </property>
>                    </bean>
>                </property>
>            </bean>
>        </property>
>    </bean>
> </beans>
> 
> 
> 
> 
> 
> [10:42:28,618][INFO][main][IgniteKernal]
> 
>>>>   __________  ________________
>>>>  /  _/ ___/ |/ /  _/_  __/ __/
>>>> _/ // (7 7    // /  / / / _/
>>>> /___/\___/_/|_/___/ /_/ /___/
>>>> 
>>>> ver. 2.0.0#20170430-sha1:d4eef3c6
>>>> 2017 Copyright(C) Apache Software Foundation
>>>> 
>>>> Ignite documentation: http://ignite.apache.org
> 
> [10:42:28,619][INFO][main][IgniteKernal] Config URL: n/a
> [10:42:28,620][INFO][main][IgniteKernal] Daemon mode: off
> [10:42:28,620][INFO][main][IgniteKernal] OS: Linux 3.10.0-327.el7.x86_64
> amd64
> [10:42:28,620][INFO][main][IgniteKernal] OS user: xyz
> [10:42:28,621][INFO][main][IgniteKernal] PID: 28781
> [10:42:28,622][INFO][main][IgniteKernal] Language runtime: Java Platform API
> Specification ver. 1.8
> [10:42:28,622][INFO][main][IgniteKernal] VM information: Java(TM) SE Runtime
> Environment 1.8.0_131-b11 Oracle Corporation Java HotSpot(TM) 64-Bit Server
> VM 25.131-b11
> [10:42:28,623][INFO][main][IgniteKernal] VM total memory: 0.89GB
> [10:42:28,623][INFO][main][IgniteKernal] Remote Management [restart: off,
> REST: on, JMX (remote: off)]
> [10:42:28,623][INFO][main][IgniteKernal]
> IGNITE_HOME=/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin
> [10:42:28,623][INFO][main][IgniteKernal] VM arguments:
> [-DIGNITE_HOME=/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin,
> -Xms512m, -Xmx1024m]
> [10:42:28,623][INFO][main][IgniteKernal] System cache's MemoryPolicy size is
> configured to 40 MB. Use MemoryConfiguration.systemCacheMemorySize property
> to change the setting.
> [10:42:28,623][INFO][main][IgniteKernal] Configured caches [in 'default'
> memoryPolicy: ['ignite-sys-cache', 'ignite-atomics-sys-cache', 'MyCache',
> 'tx']]
> [10:42:28,635][INFO][main][IgniteKernal] 3-rd party licenses can be found
> at: /home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin/libs/licenses
> [10:42:28,686][INFO][main][IgnitePluginProcessor] Configured plugins:
> [10:42:28,686][INFO][main][IgnitePluginProcessor]   ^-- None
> [10:42:28,687][INFO][main][IgnitePluginProcessor]
> [10:42:28,730][INFO][main][TcpCommunicationSpi] Successfully bound
> communication NIO server to TCP port [port=47100, locHost=0.0.0.0/0.0.0.0,
> selectorsCnt=4, selectorSpins=0, pairedConn=false]
> [10:42:28,734][WARNING][main][TcpCommunicationSpi] Message queue limit is
> set to 0 which may lead to potential OOMEs when running cache operations in
> FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and
> receiver sides.
> [10:42:28,752][WARNING][main][NoopCheckpointSpi] Checkpoints are disabled
> (to enable configure any GridCheckpointSpi implementation)
> [10:42:28,775][WARNING][main][GridCollisionManager] Collision resolution is
> disabled (all jobs will be activated upon arrival).
> [10:42:28,776][INFO][main][IgniteKernal] Security status
> [authentication=off, tls/ssl=off]
> [10:42:28,927][WARNING][main][IgniteCacheDatabaseSharedManager] No
> user-defined default MemoryPolicy found; system default of 1GB size will be
> used.
> [10:42:29,145][INFO][main][GridTcpRestProtocol] Command protocol
> successfully started [name=TCP binary, host=0.0.0.0/0.0.0.0, port=11211]
> [10:42:29,176][WARNING][main][PlatformProcessorImpl] Binary configuration is
> automatically initiated, note that binary name mapper is set to
> BinaryBaseNameMapper [isSimpleName=true] and binary ID mapper is set to
> BinaryBaseIdMapper [isLowerCase=true] (other nodes must have the same binary
> name and ID mapper types).
> [10:42:29,186][INFO][main][IgniteKernal] Non-loopback local IPs: 10.0.2.235,
> fe80:0:0:0:68cd:28ff:fe1b:dfab%eth0
> [10:42:29,186][INFO][main][IgniteKernal] Enabled local MACs: 6ACD281BDFAB
> [10:42:29,223][INFO][main][TcpDiscoverySpi] Successfully bound to TCP port
> [port=47500, localHost=0.0.0.0/0.0.0.0,
> locNodeId=b3f0367d-3c2b-47b4-865f-a62c656b5d3f]
> [10:42:30,129][SEVERE][main][IgniteKernal] Failed to start manager:
> GridManagerAdapter [enabled=true,
> name=o.a.i.i.managers.discovery.GridDiscoveryManager]
> class org.apache.ignite.IgniteCheckedException: Failed to start SPI:
> TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000,
> marsh=JdkMarshaller [], reconCnt=10, maxAckTimeout=600000,
> forceSrvMode=false, clientReconnectDisabled=false]
>        at
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
>        at
> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:699)
>        at
> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1745)
>        at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:968)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
>        at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
>        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:573)
>        at
> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:48)
>        at
> org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:76)
> Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node's
> binary configuration is not equal to remote node's binary configuration
> [locNodeId=b3f0367d-3c2b-47b4-865f-a62c656b5d3f,
> rmtNodeId=556a3f41-eab1-4d9f-b67c-d94d77ddd89d,
> locBinaryCfg={globIdMapper=org.apache.ignite.binary.BinaryBasicIdMapper,
> compactFooter=false, globSerializer=null}, rmtBinaryCfg=null]
>        at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1756)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:907)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:357)
>        at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1831)
>        at
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
>        ... 9 more
> [10:42:30,129][SEVERE][main][IgniteKernal] Got exception while starting
> (will rollback startup routine).
> 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:1750)
>        at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:968)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
>        at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
>        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:573)
>        at
> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:48)
>        at
> org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:76)
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start
> SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000,
> marsh=JdkMarshaller [], reconCnt=10, maxAckTimeout=600000,
> forceSrvMode=false, clientReconnectDisabled=false]
>        at
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:300)
>        at
> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:699)
>        at
> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1745)
>        ... 7 more
> Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node's
> binary configuration is not equal to remote node's binary configuration
> [locNodeId=b3f0367d-3c2b-47b4-865f-a62c656b5d3f,
> rmtNodeId=556a3f41-eab1-4d9f-b67c-d94d77ddd89d,
> locBinaryCfg={globIdMapper=org.apache.ignite.binary.BinaryBasicIdMapper,
> compactFooter=false, globSerializer=null}, rmtBinaryCfg=null]
>        at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1756)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:907)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:357)
>        at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1831)
>        at
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
>        ... 9 more
> [10:42:30,133][INFO][main][GridTcpRestProtocol] Command protocol
> successfully stopped: TCP binary
> [10:42:30,136][WARNING][main][GridCacheIoManager] Failed to unregister
> ordered cache communication handler because it was not found for topic: T6
> [topic=TOPIC_CACHE, id1=83e8ca36-2305-3266-8e65-1463be879baa, id2=0]
> [10:42:35,137][INFO][main][TcpDiscoverySpi] No verification for local node
> leave has been received from coordinator (will stop node anyway).
> [10:42:35,138][SEVERE][main][IgniteKernal] Failed to stop component
> (ignoring): GridManagerAdapter [enabled=true,
> name=o.a.i.i.managers.discovery.GridDiscoveryManager]
> java.lang.NullPointerException
>        at
> org.apache.ignite.spi.IgniteSpiAdapter.unregisterMBean(IgniteSpiAdapter.java:431)
>        at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStop(TcpDiscoverySpi.java:1959)
>        at
> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.stop(GridDiscoveryManager.java:1383)
>        at
> org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2180)
>        at
> org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2047)
>        at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1052)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
>        at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
>        at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
>        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:573)
>        at
> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:48)
>        at
> org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:76)
> [10:42:35,238][INFO][main][IgniteKernal]
> 
>>>> Ignite ver. 2.0.0#20170430-sha1:d4eef3c68ff116ee34bc13648cd82c640b3ea072
>>>> stopped with ERRORS
>>>> +------------------------------------------------------------------------------------------+
>>>> Grid uptime: 00:00:07:228
>>>> See log above for detailed error message.
>>>> Note that some errors during stop can prevent grid from
>>>> maintaining correct topology since this node may have
>>>> not exited grid properly.
> 
> 
> 
> In other case if I start the C++ application node first and then i start the
> other node then my application will run with out error but my another node
> will face the same kind of error.....
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Facing-problem-in-examples-tp13894p13901.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Mime
View raw message