Closed ceefour closed 10 years ago
The reason is because GridGain is split into modules now.
Datagrid is now a collection of 3 modules: gridgain-core, gridgain-indexing, and gridgain-spring. You can add and remove modules as needed. For more information you can refer to Maven Setup documentation: http://atlassian.gridgain.com/wiki/display/GG619/Maven+Setup
Sorry, I was trying this video which used an older GridGain http://www.youtube.com/watch?v=zDZBJ_BGrkk
Thank you @dsetrakyan :)
Hmm now I get this:
Exception in thread "main" class org.gridgain.grid.GridException: Failed to start manager: GridManagerAdapter [enabled=true, name=org.gridgain.grid.kernal.managers.discovery.GridDiscoveryManager]
at org.gridgain.grid.kernal.GridKernal.startManager(GridKernal.java:1474)
at org.gridgain.grid.kernal.GridKernal.start(GridKernal.java:715)
at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start0(GridGainEx.java:1884)
at org.gridgain.grid.kernal.GridGainEx$GridNamedInstance.start(GridGainEx.java:1231)
at org.gridgain.grid.kernal.GridGainEx.start0(GridGainEx.java:774)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:704)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:626)
at org.gridgain.grid.kernal.GridGainEx.start(GridGainEx.java:491)
at org.gridgain.grid.GridGain.start(GridGain.java:314)
at com.hendyirawan.gggettingstarted.simple.HelloWorld.main(HelloWorld.java:11)
Caused by: class org.gridgain.grid.GridException: Failed to start SPI: GridTcpDiscoverySpi [addrRslvr=null, locPort=47500, locPortRange=100, statsPrintFreq=0, netTimeout=5000, sockTimeout=2000, ackTimeout=5000, maxAckTimeout=600000, joinTimeout=0, hbFreq=2000, maxMissedHbs=1, threadPri=10, storesCleanFreq=60000, reconCnt=10, topHistSize=1000, gridName=null, locNodeId=ee655756-c2f3-4ec1-8e5b-93edaef8bbda, marsh=GridJdkMarshaller [], gridMarsh=org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller@7a3793c7, locNode=GridTcpDiscoveryNode [id=ee655756-c2f3-4ec1-8e5b-93edaef8bbda, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47502], discPort=47502, order=0, loc=true, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], locAddr=127.0.0.1, locHost=localhost/127.0.0.1, ipFinder=GridTcpDiscoveryVmIpFinder [addrs=[/127.0.0.1:47500, /127.0.0.1:47501, /127.0.0.1:47502, /127.0.0.1:47503, /127.0.0.1:47504, /127.0.0.1:47505, /127.0.0.1:47506, /127.0.0.1:47507, /127.0.0.1:47508, /127.0.0.1:47509], super=GridTcpDiscoveryIpFinderAdapter [shared=false]], metricsStore=null, spiState=CHECK_FAILED, ipFinderHasLocAddr=true, recon=false, joinRes=GridTuple [val=GridTcpDiscoveryCheckFailedMessage [err=Local node's and remote node's build versions are not compatible (node will not join, all nodes in topology should have compatible build versions) [locBuildVer=6.1.9-os, rmtBuildVer=6.1.9-ent, locNodeAddrs=[/127.0.0.1], locPort=47502, rmtNodeAddr=[/127.0.0.1], locNodeId=ee655756-c2f3-4ec1-8e5b-93edaef8bbda, rmtNodeId=5ab0324d-728f-4854-82ad-3b4fe0966d07], super=GridTcpDiscoveryAbstractMessage [senderNodeId=5ab0324d-728f-4854-82ad-3b4fe0966d07, id=daf26120741-5ab0324d-728f-4854-82ad-3b4fe0966d07, verifierNodeId=null, topVer=0]]], nodeAuth=org.gridgain.grid.kernal.managers.discovery.GridDiscoveryManager$3@4dd6fd0a, gridStartTime=0]
at org.gridgain.grid.kernal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:222)
at org.gridgain.grid.kernal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:371)
at org.gridgain.grid.kernal.GridKernal.startManager(GridKernal.java:1471)
... 9 more
Caused by: class org.gridgain.grid.spi.GridSpiException: Local node's and remote node's build versions are not compatible (node will not join, all nodes in topology should have compatible build versions) [locBuildVer=6.1.9-os, rmtBuildVer=6.1.9-ent, locNodeAddrs=[/127.0.0.1], locPort=47502, rmtNodeAddr=[/127.0.0.1], locNodeId=ee655756-c2f3-4ec1-8e5b-93edaef8bbda, rmtNodeId=5ab0324d-728f-4854-82ad-3b4fe0966d07]
For more information see:
Troubleshooting: http://bit.ly/GridGain-Troubleshooting
Documentation Center: http://bit.ly/GridGain-Documentation
at org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi.joinTopology(GridTcpDiscoverySpi.java:1623)
at org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi.spiStart0(GridTcpDiscoverySpi.java:1037)
at org.gridgain.grid.spi.discovery.tcp.GridTcpDiscoverySpi.spiStart(GridTcpDiscoverySpi.java:945)
at org.gridgain.grid.kernal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:219)
... 11 more
but OK, it seems I need to download the os
version of GridGain 6.1.9
Open source and enterprise versions are trying to join the same topology:
locBuildVer=6.1.9-os, rmtBuildVer=6.1.9-ent,
Here are some good screencasts, by the way: http://www.gridgain.org/documentation/
Yaaay I made my first mapreduce function in GridGain, distributed across 3 nodes in the same machine, easy, awesome! :) https://github.com/ceefour/gggettingstarted/blob/3ba2878c81419b336ce2fbc13b44c8fe9d38fc2d/src/main/java/com/hendyirawan/gggettingstarted/simple/JavaMapReduce.java
I need to adapt the original tutorial code (which uses GridGain 3) because grid().reduce()
method no longer exists... and I don't know how to use F.yield()
and F.sumIntReducer()
in GridGain 6.1.
Thanks @dsetrakyan :)
See http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.gridgain%22%20AND%20a%3A%22gridgain-datagrid%22
the latest version gridgain-datagrid jar + javadoc.jar + sources.jar available are v6.1.6