ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomli <tomy...@gmail.com>
Subject How to deploy CacheJdbcPojoStore on a cluster of "non-embedded" Ignite node?
Date Thu, 17 Mar 2016 06:45:50 GMT
Hi All,

I want to deploy a CacheJdbcPojoStore on a cluster formed by some
"non-embedded" Ignite node, the closest thing I can find in 
"https://apacheignite.readme.io/" is
"https://apacheignite.readme.io/docs/automatic-persistence".

By following the instructions, I am able to run the Demo application, which
start a "embedded" Ignite node with a CacheJdbcPojoStore connects to a H2
database.

I then try to start a "non-embedded" Ignite node, hoping it could form a
cluster with the "embedded" node, but it failed to start with the following
log message:

    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0
    [12:33:14]    __________  ________________
    [12:33:14]   /  _/ ___/ |/ /  _/_  __/ __/
    [12:33:14]  _/ // (7 7    // /  / / / _/
    [12:33:14] /___/\___/_/|_/___/ /_/ /___/
    [12:33:14]
    [12:33:14] ver. 1.5.0-final#20151229-sha1:f1f8cda2
    [12:33:14] 2015 Copyright(C) Apache Software Foundation
    [12:33:14]
    [12:33:14] Ignite documentation: http://ignite.apache.org
    [12:33:14]
    [12:33:14] Quiet mode.
    [12:33:14]   ^-- Logging to file
'C:\work\apache-ignite-fabric-1.5.0.final-bin\work\log\ignite-6c54d7fb.0.log'
    [12:33:14]   ^-- To see **FULL** console log here add
-DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
    [12:33:14]
    [12:33:14] OS: Windows 7 6.1 amd64
    [12:33:14] VM information: Java(TM) SE Runtime Environment 1.8.0_25-b18
Oracle Corporation Java HotSpot(TM) 64-Bit Serve
    r VM 25.25-b02
    [12:33:16] Configured plugins:
    [12:33:16]   ^-- None
    [12:33:16]
    [12:33:17] Security status [authentication=off, tls/ssl=off]
    [12:33:19,008][SEVERE][tcp-disco-msg-worker-#2%null%][TcpDiscoverySpi]
Failed to unmarshal discovery data for component: 1
    class org.apache.ignite.IgniteCheckedException: Failed to find class
with given class loader for unmarshalling (make sure same versions of all
classes are available on all nodes or enable peer-class-loading):
sun.misc.Launcher$AppClassLoader@c387f44
            at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108)
            at
org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78)
            at
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.onExchange(TcpDiscoverySpi.java:1717)
            at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processNodeAddedMessage(ServerImpl.java:3683)
            at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2252)
            at
org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5784)
            at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2161)
            at
org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
    Caused by: java.lang.ClassNotFoundException:
org.apache.ignite.schema.Demo$H2DemoStoreFactory
            at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:344)
            at
org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8172)
            at
org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
            at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
            at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
            at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
            at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
            at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
            at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
            at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
            at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
            at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
            at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
            at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
            at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
            at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
            at java.util.ArrayList.readObject(ArrayList.java:791)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:483)
            at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
            at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
            at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
            at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
            at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
            at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
            at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
            at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
            at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
            at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
            ... 7 more
    [12:33:19,088][SEVERE][main][IgniteKernal] Failed to start manager:
GridManagerAdapter [enabled=true,
name=o.a.i.i.managers.discovery.GridDiscoveryManager]
    class org.apache.ignite.IgniteCheckedException: Remote node has peer
class loading enabled flag different from local [locId8=6c54d7fb,
locPeerClassLoading=false, rmtId8=b24d4289, rmtPeerClassLoading=true,
rmtAddrs=[CL161.tltest.local/0:0:0:0:0:0:0:1, CL161.tltest.local/127.0.0.1,
CL161.tltest.local/128.128.1.131, /192.168.56.1,
/2002:8080:183:0:0:0:8080:183]]
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.checkAttributes(GridDiscoveryManager.java:1027)
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:680)
            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.startConfigurations(IgnitionEx.java:929)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
            at org.apache.ignite.Ignition.start(Ignition.java:347)
            at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
    [12:33:19,090][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.startConfigurations(IgnitionEx.java:929)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
            at org.apache.ignite.Ignition.start(Ignition.java:347)
            at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
    Caused by: class org.apache.ignite.IgniteCheckedException: Remote node
has peer class loading enabled flag different from local [locId8=6c54d7fb,
locPeerClassLoading=false, rmtId8=b24d4289, rmtPeerClassLoading=true,
rmtAddrs=[CL161.tltest.local/0:0:0:0:0:0:0:1, CL161.tltest.local/127.0.0.1,
CL161.tltest.local/128.128.1.131, /192.168.56.1,
/2002:8080:183:0:0:0:8080:183]]
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.checkAttributes(GridDiscoveryManager.java:1027)
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:680)
            at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
            ... 11 more
    [12:33:19] Ignite node stopped OK [uptime=00:00:04:716]
    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:882)
            at org.apache.ignite.Ignition.start(Ignition.java:350)
            at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
    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: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.startConfigurations(IgnitionEx.java:929)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
            at
org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
            at org.apache.ignite.Ignition.start(Ignition.java:347)
            ... 1 more
    Caused by: class org.apache.ignite.IgniteCheckedException: Remote node
has peer class loading enabled flag different from local [locId8=6c54d7fb,
locPeerClassLoading=false, rmtId8=b24d4289, rmtPeerClassLoading=true,
rmtAddrs=[CL161.tltest
    .local/0:0:0:0:0:0:0:1, CL161.tltest.local/127.0.0.1,
CL161.tltest.local/128.128.1.131, /192.168.56.1,
/2002:8080:183:0:0:0:8080:183]]
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.checkAttributes(GridDiscoveryManager.java:1027)
            at
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:680)
            at
org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
            ... 11 more
    Failed to start grid: Failed to start manager: GridManagerAdapter
[enabled=true,
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
    Press any key to continue . . .


How to make this work correctly?

Thank you
Tom



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-deploy-CacheJdbcPojoStore-on-a-cluster-of-non-embedded-Ignite-node-tp3555.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message