Facing problem in examples.

classic Classic list List threaded Threaded
10 messages Options
Rahul.S Rahul.S
Reply | Threaded
Open this post in threaded view
|

Facing problem in examples.

Hi Ignite Team,
I am new to the Ignite and its application,
I was intended to work with C++ examples, in the put-get example the cache name was not given in the example source code, i gave that part and its up and good to go, the executable is starting and writing the contents in the cache and reading from the cache but to create a cluster i am starting the one more ignite node in the same server (also tried in the different server) but i am getting this error, in the start of the second node (the second node may be the executable of the one more instance by executing ignite.sh).


Here is the error that i am getting:
[xyz@V235-Dev putget-example]$ ./ignite-putgetexample
TBR--->   main Started
TBR--->   Loading the config/example-cache.xml
TBR--->   Loaded the config/example-cache.xml
TBR--->   Startignt ignite node.
Jun 18, 2017 1:10:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin/platforms/cpp/examples/putget-example/config/example-cache.xml]
Jun 18, 2017 1:10:41 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@18e8568: startup date [Sun Jun 18 13:10:41 IST 2017]; root of context hierarchy
[13:10:41]    __________  ________________
[13:10:41]   /  _/ ___/ |/ /  _/_  __/ __/
[13:10:41]  _/ // (7 7    // /  / / / _/
[13:10:41] /___/\___/_/|_/___/ /_/ /___/
[13:10:41]
[13:10:41] ver. 2.0.0#20170430-sha1:d4eef3c6
[13:10:41] 2017 Copyright(C) Apache Software Foundation
[13:10:41]
[13:10:41] Ignite documentation: http://ignite.apache.org
[13:10:41]
[13:10:41] Quiet mode.
[13:10:41]   ^-- Logging to file '/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin/work/log/ignite-16234208.0.log'
[13:10:41]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[13:10:41]
[13:10:41] OS: Linux 3.10.0-327.el7.x86_64 amd64
[13:10:41] VM information: Java(TM) SE Runtime Environment 1.8.0_131-b11 Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.131-b11
[13:10:41] Configured plugins:
[13:10:41]   ^-- None
[13:10:41]
[13:10:41] 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.
[13:10:41] Security status [authentication=off, tls/ssl=off]
[13:10:42,259][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: Non-shared IP finder must have IP addresses specified in TcpDiscoveryIpFinder.getRegisteredAddresses() configuration property (specify list of IP addresses in configuration).
        at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:343)
        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
[13:10:42,261][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: Non-shared IP finder must have IP addresses specified in TcpDiscoveryIpFinder.getRegisteredAddresses() configuration property (specify list of IP addresses in configuration).
        at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:343)
        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
[13:10:47,279][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)
[13:10:47] Ignite node stopped wih ERRORS [uptime=00:00:06:358]
>>> An error occurred: Failed to start manager: GridManagerAdapter [enabled=true, name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]

>>> Example finished, press 'Enter' to exit ...

[xyz@V235-Dev putget-example]$
dmagda dmagda
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Hi Rahul,

You need to provide a list of IP addresses since you use the static IP finder. Check this message:

Caused by: class org.apache.ignite.spi.IgniteSpiException: Non-shared IP
finder must have IP addresses specified in
TcpDiscoveryIpFinder.getRegisteredAddresses() configuration property
(specify list of IP addresses in configuration).

Read more about this IP finder here:
https://apacheignite.readme.io/docs/cluster-config#static-ip-based-discovery


Denis

> On Jun 17, 2017, at 11:51 PM, Rahul.S <[hidden email]> wrote:
>
> Hi Ignite Team,
> I am new to the Ignite and its application,
> I was intended to work with C++ examples, in the put-get example the cache
> name was not given in the example source code, i gave that part and its up
> and good to go, the executable is starting and writing the contents in the
> cache and reading from the cache but to create a cluster i am starting the
> one more ignite node in the same server (also tried in the different server)
> but i am getting this error, in the start of the second node (the second
> node may be the executable of the one more instance by executing ignite.sh).
>
>
> Here is the error that i am getting:
> [xyz@V235-Dev putget-example]$ ./ignite-putgetexample
> TBR--->   main Started
> TBR--->   Loading the config/example-cache.xml
> TBR--->   Loaded the config/example-cache.xml
> TBR--->   Startignt ignite node.
> Jun 18, 2017 1:10:41 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from URL
> [file:/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin/platforms/cpp/examples/putget-example/config/example-cache.xml]
> Jun 18, 2017 1:10:41 PM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing
> org.springframework.context.support.GenericApplicationContext@18e8568:
> startup date [Sun Jun 18 13:10:41 IST 2017]; root of context hierarchy
> [13:10:41]    __________  ________________
> [13:10:41]   /  _/ ___/ |/ /  _/_  __/ __/
> [13:10:41]  _/ // (7 7    // /  / / / _/
> [13:10:41] /___/\___/_/|_/___/ /_/ /___/
> [13:10:41]
> [13:10:41] ver. 2.0.0#20170430-sha1:d4eef3c6
> [13:10:41] 2017 Copyright(C) Apache Software Foundation
> [13:10:41]
> [13:10:41] Ignite documentation: http://ignite.apache.org
> [13:10:41]
> [13:10:41] Quiet mode.
> [13:10:41]   ^-- Logging to file
> '/home/xyz/rahul/ignite/apache-ignite-fabric-2.0.0-bin/work/log/ignite-16234208.0.log'
> [13:10:41]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [13:10:41]
> [13:10:41] OS: Linux 3.10.0-327.el7.x86_64 amd64
> [13:10:41] VM information: Java(TM) SE Runtime Environment 1.8.0_131-b11
> Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.131-b11
> [13:10:41] Configured plugins:
> [13:10:41]   ^-- None
> [13:10:41]
> [13:10:41] 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.
> [13:10:41] Security status [authentication=off, tls/ssl=off]
> [13:10:42,259][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: Non-shared IP
> finder must have IP addresses specified in
> TcpDiscoveryIpFinder.getRegisteredAddresses() configuration property
> (specify list of IP addresses in configuration).
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:343)
>        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
> [13:10:42,261][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: Non-shared IP
> finder must have IP addresses specified in
> TcpDiscoveryIpFinder.getRegisteredAddresses() configuration property
> (specify list of IP addresses in configuration).
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:343)
>        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
> [13:10:47,279][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)
> [13:10:47] Ignite node stopped wih ERRORS [uptime=00:00:06:358]
>>>> An error occurred: Failed to start manager: GridManagerAdapter
>>>> [enabled=true,
>>>> name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
>
>>>> Example finished, press 'Enter' to exit ...
>
> [xyz@V235-Dev putget-example]$
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Facing-problem-in-examples-tp13894.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Rahul.S Rahul.S
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Hello Denis,
I am using two servers here, in my 253 i have the C++ example application is running and i am running a node in 26.
As i start my application it will come up smoothly along with ignite if there is none of the other nodes are up in the network else it will show the previous errors (that o have already posted in the first message).
well i did the modification as you specified i used the list of ip's as below:

       
        <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">
                   
                                 
                                  <value>10.0.2.235</value>
                                  <value>10.0.2.26</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

but still facing the same....
Denis Magda Denis Magda
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Please, share the full configuration and logs from both nodes.

Igor Sapego, please have a look.

Denis

On Sunday, June 18, 2017, Rahul.S <[hidden email]> wrote:
Hello Denis,
I am using two servers here, in my 253 i have the C++ example application is
running and i am running a node in 26.
As i start my application it will come up smoothly along with ignite if
there is none of the other nodes are up in the network else it will show the
previous errors (that o have already posted in the first message).
well i did the modification as you specified i used the list of ip's as
below:


        <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">


                                  <value>10.0.2.235</value>
                                  <value>10.0.2.26</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

but still facing the same....



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Facing-problem-in-examples-tp13894p13896.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Rahul.S Rahul.S
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

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.....
dmagda dmagda
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

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:

Denis

On Jun 19, 2017, at 6:19 AM, Rahul.S <[hidden email]> 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.

Igor Sapego Igor Sapego
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Hi,

Denis is right. Currently C++ and Java nodes have different default
binary configurations, so you need to set them up properly.



Best Regards,
Igor

On Mon, Jun 19, 2017 at 3:40 PM, Denis Magda <[hidden email]> wrote:
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:

Denis

On Jun 19, 2017, at 6:19 AM, Rahul.S <[hidden email]> 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.


Rahul.S Rahul.S
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

BINGO!!!!!
that helped alot, it is working now thank you very much people for such a positive and good support...
dmagda dmagda
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Thanks for confirming that the issue has been solved.

I’ve added a special documentation section [1] to avoid issues like that in the future and placed "Platforms Interoperability Getting Started” callout block to C++ Getting Started Guide [2] to draw attention to these extra settings.


Denis

On Jun 20, 2017, at 8:05 AM, Rahul.S <[hidden email]> wrote:

BINGO!!!!!
that helped alot, it is working now thank you very much people for such a
positive and good support...



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Facing-problem-in-examples-tp13894p13981.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Igor Sapego-1 Igor Sapego-1
Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in examples.

Denis, great idea!

Best Regards,
Igor

On Wed, Jun 21, 2017 at 6:43 AM, Denis Magda <[hidden email]> wrote:
Thanks for confirming that the issue has been solved.

I’ve added a special documentation section [1] to avoid issues like that in the future and placed "Platforms Interoperability Getting Started” callout block to C++ Getting Started Guide [2] to draw attention to these extra settings.

[1] https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability#binary-marshaller-configuration <https://apacheignite-cpp.readme.io/docs/cross-platform-interoperability#binary-marshaller-configuration>
[2] https://apacheignite-cpp.readme.io/v2.0/docs/getting-started-1#section-start-from-command-line <https://apacheignite-cpp.readme.io/v2.0/docs/getting-started-1#section-start-from-command-line>


Denis

> On Jun 20, 2017, at 8:05 AM, Rahul.S <[hidden email]> wrote:
>
> BINGO!!!!!
> that helped alot, it is working now thank you very much people for such a
> positive and good support...
>
>
>
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Facing-problem-in-examples-tp13894p13981.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.