ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Re: Error Starting Node from .net
Date Mon, 28 Mar 2016 08:08:59 GMT
Hi,

In Ignite 1.5 binary protocol for .NET doesn't support one optimization
called "compact footers" which is supported by Java. This optimization will
be added in Ignite 1.6. For now please add the following property to
configuration of our Java node:

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

Vladimir.

On Mon, Mar 28, 2016 at 3:21 AM, Murthy Kakarlamudi <ksatya@gmail.com>
wrote:

> Hi,
>    In my application, I am starting the node from command line. One the
> client nodes uses java to load the data and the other client node in .net
> uses sql to query the cache. I am getting the below error running .net
> client node:
>
> GC server mode is not enabled, this could lead to less than optimal
> performance on multi-core machines (to enable see
> http://msdn.microsoft.com/en-us/library/ms229357(v=vs.110).aspx).
> Mar 27, 2016 8:03:56 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from URL
> [file:/C:/Data/Professional/java/ignite/software/apache-ignite-fabric-1.5.0.final-bin/platforms/dotnet/examples/config/ignite.xml]
> Mar 27, 2016 8:03:57 PM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing
> org.springframework.context.support.GenericApplicationContext@7907ec20:
> startup date [Sun Mar 27 20:03:57 EDT 2016]; root of context hierarchy
> [20:03:57]    __________  ________________
> [20:03:57]   /  _/ ___/ |/ /  _/_  __/ __/
> [20:03:57]  _/ // (7 7    // /  / / / _/
> [20:03:57] /___/\___/_/|_/___/ /_/ /___/
> [20:03:57]
> [20:03:57] ver. 1.5.0-final#20151229-sha1:f1f8cda2
> [20:03:57] 2015 Copyright(C) Apache Software Foundation
> [20:03:57]
> [20:03:57] Ignite documentation: http://ignite.apache.org
> [20:03:57]
> [20:03:57] Quiet mode.
> [20:03:57]   ^-- Logging to file
> 'C:\Data\Professional\java\ignite\software\apache-ignite-fabric-1.5.0.final-bin\work\log\ignite-1966dd40.0.log'
> [20:03:57]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [20:03:57]
> [20:03:57] OS: Windows 10 10.0 amd64
> [20:03:57] VM information: Java(TM) SE Runtime Environment 1.8.0_65-b17
> Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.65-b01
> [20:03:59] Configured plugins:
> [20:03:59]   ^-- None
> [20:03:59]
> [20:04:00] Security status [authentication=off, tls/ssl=off]
> [20:04:04,710][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,
> 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:660)
>         at
> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
>         at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:917)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
>         at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515)
>         at org.apache.ignite.Ignition.start(Ignition.java:322)
>         at
> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:36)
>         at
> org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:72)
> Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node's
> binary marshaller "compactFooter" property differs from the same property
> on remote node (make sure all nodes in topology have the same value of
> "compactFooter" property) [locMarshallerCompactFooter=false,
> rmtMarshallerCompactFooter=true,
> locNodeAddrs=[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/127.0.0.1,
> /192.168.0.7, /2001:0:5ef5:79fd:2c57:a4e:bb9b:11d9], locPort=0,
> rmtNodeAddr=[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/127.0.0.1, /
> 192.168.0.7, /2001:0:5ef5:79fd:2c57:a4e:bb9b:11d9],
> locNodeId=1966dd40-4c81-4f5c-a97c-f7a9dd0a9c15,
> rmtNodeId=e89a03d0-4984-4c7e-9d21-c2225a05886e]
>         at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1647)
>         at
> org.apache.ignite.spi.discovery.tcp.ClientImpl$MessageWorker.body(ClientImpl.java:1460)
>         at
> org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> [20:04:04,725][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:1510)
>         at
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:917)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
>         at
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515)
>         at org.apache.ignite.Ignition.start(Ignition.java:322)
>         at
> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:36)
>         at
> org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:72)
> 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:660)
>         at
> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
>         ... 9 more
> Caused by: class org.apache.ignite.spi.IgniteSpiException: *Local node's
> binary marshaller "compactFooter" property differs from the same property
> on remote node (make sure all nodes in topology have the same value of
> "compactFooter" property) [locMarshallerCompactFooter=false,
> rmtMarshallerCompactFooter=true,
> locNodeAddrs=[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/127.0.0.1
> <http://127.0.0.1>, /192.168.0.7 <http://192.168.0.7>,
> /2001:0:5ef5:79fd:2c57:a4e:bb9b:11d9], locPort=0,
> rmtNodeAddr=[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/127.0.0.1
> <http://127.0.0.1>, /192.168.0.7 <http://192.168.0.7>,
> /2001:0:5ef5:79fd:2c57:a4e:bb9b:11d9],
> locNodeId=1966dd40-4c81-4f5c-a97c-f7a9dd0a9c15,
> rmtNodeId=e89a03d0-4984-4c7e-9d21-c2225a05886e]*
>         at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError(TcpDiscoverySpi.java:1647)
>         at
> org.apache.ignite.spi.discovery.tcp.ClientImpl$MessageWorker.body(ClientImpl.java:1460)
>         at
> org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> [20:04:04] Ignite node stopped OK [uptime=00:00:08:536]
>
> My ignite.xml has the below content:
> <bean id="ignite.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
>         <property name="connectorConfiguration">
>             <bean
> class="org.apache.ignite.configuration.ConnectorConfiguration">
>                 <property name="idleTimeout" value="20000"/>
>             </bean>
>         </property>
>
>         <property name="communicationSpi">
>             <bean
> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>                 <property name="sharedMemoryPort" value="-1"/>
>             </bean>
>         </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>127.0.0.1:47500..47509</value>
>                             </list>
>                         </property>
>                     </bean>
>                 </property>
>             </bean>
>         </property>
>     </bean>
>
> My .net client node is as follows:
> static void Main(string[] args)
>         {
>             var cfg = new IgniteConfiguration
>             {
>                 SpringConfigUrl =
> @"platforms\dotnet\examples\config\example-cache.xml",
>                 JvmOptions = new List<string> { "-Xms512m", "-Xmx1024m" }
>             };
>             Ignition.ClientMode = true;
>             using (var ignite = Ignition.Start(cfg))
>             {
>                 Console.WriteLine(">>> Cache query example started");
>                 var orgCache = ignite.GetCache<object, object>(ORG_CACHE);
>                 var perCache = ignite.GetCache<object,
> object>(PERSON_CACHE);
> }
>

Mime
View raw message