How can I use Ignite cluster with remote servers? Currently, I am getting a below error. FYI, I have already configured my TcpDiscoveryVmIpFinder and TcpCommunicationSpi correctly, but for some reason, it is pointing at 10.209.236.58 which is from localhost, and thus the server is not able to connect with those ip address. FYI I have already included jar file under ignite's lib folder which also contains Pojo class for Cassandra Persistency Settings.
I have already read http://apache-ignite-users.70518.x6.nabble.com/Remote-client-tt19574.html#a19591 which is the exact problem I was having, but the thread was never answered properly. [14:43:58,405][SEVERE][exchange-worker-#62][GridDhtPartitionsExchangeFuture] Failed to reinitialize local partitions (preloading will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], topVer=2, nodeId8=b0f4894f, msg=Node joined: TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], type=NODE_JOINED, tstamp=1532457838379], nodeId=b2b939cb, evt=NODE_JOINED] java.lang.NullPointerException at org.apache.ignite.cache.store.cassandra.persistence.PojoField.calculatedField(PojoField.java:155) at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.prepareLoadStatements(PersistenceController.java:313) at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.<init>(PersistenceController.java:85) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.<init>(CassandraCacheStore.java:106) at org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:59) at org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:34) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startReceivedCaches(GridCacheProcessor.java:1864) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:667) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread.java:748) [14:43:58,411][SEVERE][exchange-worker-#62][GridCachePartitionExchangeManager] Failed to wait for completion of partition map exchange (preloading will not start): GridDhtPartitionsExchangeFuture [firstDiscoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], topVer=2, nodeId8=b0f4894f, msg=Node joined: TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], type=NODE_JOINED, tstamp=1532457838379], crd=TcpDiscoveryNode [id=b0f4894f-a8ab-4ee9-94d7-62816e711e24, addrs=[10.240.192.65, 127.0.0.1], sockAddrs=[ulvcdpd02.devfg.rbc.com/10.240.192.65:47500, /127.0.0.1:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1532457838369, loc=true, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], topVer=2, nodeId8=b0f4894f, msg=Node joined: TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], type=NODE_JOINED, tstamp=1532457838379], nodeId=b2b939cb, evt=NODE_JOINED], added=true, initFut=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=false, hash=151552096], init=false, lastVer=null, partReleaseFut=null, exchActions=null, affChangeMsg=null, initTs=1532457838379, centralizedAff=false, forceAffReassignment=false, changeGlobalStateE=null, done=true, state=CRD, evtLatch=0, remaining=[b2b939cb-35c1-4aab-8085-309253f6e196], super=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=java.lang.NullPointerException, hash=746462951]] class org.apache.ignite.IgniteCheckedException: null at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7307) at org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:259) at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:207) at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:159) at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:151) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2433) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at org.apache.ignite.cache.store.cassandra.persistence.PojoField.calculatedField(PojoField.java:155) at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.prepareLoadStatements(PersistenceController.java:313) at org.apache.ignite.cache.store.cassandra.persistence.PersistenceController.<init>(PersistenceController.java:85) at org.apache.ignite.cache.store.cassandra.CassandraCacheStore.<init>(CassandraCacheStore.java:106) at org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:59) at org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory.create(CassandraCacheStoreFactory.java:34) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startReceivedCaches(GridCacheProcessor.java:1864) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:667) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419) ... 3 more [14:43:58,435][SEVERE][exchange-worker-#62][GridDhtPartitionsExchangeFuture] Failed to reinitialize local partitions (preloading will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], topVer=3, nodeId8=b0f4894f, msg=Node failed: TcpDiscoveryNode [id=b2b939cb-35c1-4aab-8085-309253f6e196, addrs=[0:0:0:0:0:0:0:1, 10.209.236.58, 127.0.0.1], sockAddrs=[/10.209.236.58:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=2, intOrder=2, lastExchangeTime=1532457828204, loc=false, ver=2.5.0#20180523-sha1:86e110c7, isClient=false], type=NODE_FAILED, tstamp=1532457838390], nodeId=b2b939cb, evt=NODE_FAILED] java.lang.IllegalStateException: Affinity for topology version is not initialized [locNode=b0f4894f-a8ab-4ee9-94d7-62816e711e24, grp=ignite-cass-delta, topVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], head=AffinityTopologyVersion [topVer=-1, minorTopVer=0], history=[]] at org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.readyAffinity(GridAffinityAssignmentCache.java:599) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:1716) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.finishExchangeOnCoordinator(GridDhtPartitionsExchangeFuture.java:2672) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onAllReceived(GridDhtPartitionsExchangeFuture.java:2467) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1149) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:712) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/