ignite

Ignite Cache Reconnection Issue (Cache is stopped)

怎甘沉沦 提交于 2019-12-11 09:56:36
问题 Currently we are using Ignite 2.1 and Spring Data Ignite Repository. I have a server node and a client node with one cache "TestCache". When client is connected to server, and server node is down, it will disconnect. When the server node is started back, client node will reconnect back. However, when it is connected back, the cache "TestCache" is no longer accessible with the following exception: java.lang.IllegalStateException: class org.apache.ignite.internal.processors.cache

Apache Ignite Unable to locate Spring NamespaceHandler for XML schema namespace

眉间皱痕 提交于 2019-12-11 08:45:51
问题 I have just created simple Java project, it works fine when I run the from intellji, however when I convert to the jar file and run, gives me error like this: (when i remove Property 'includeEventTypes, it works fine with jar!!) Bean 'ignite.cfg'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util] Offending resource:

Cannot write/save data to Ignite directly from a Spark RDD

不想你离开。 提交于 2019-12-11 07:17:12
问题 I try to write dataframe to ignite using jdbc , The Spark version is : 2.1 Ignite version:2.3 JDK:1.8 Scala:2.11.8 this is my code snippet: def WriteToIgnite(hiveDF:DataFrame,targetTable:String):Unit = { val conn = DataSource.conn var psmt:PreparedStatement = null try { OperationIgniteUtil.deleteIgniteData(conn,targetTable) hiveDF.foreachPartition({ partitionOfRecords => { partitionOfRecords.foreach( row => for ( i <- 0 until row.length ) { psmt = OperationIgniteUtil.getInsertStatement(conn,

Ignite cache.containsKey returns false although keys are equal

点点圈 提交于 2019-12-11 06:48:51
问题 I run the following code: @Test public void containsTest() { IgniteCache<Object, Object> cache = ignite.getOrCreateCache("cache"); Map<String, Integer> key1 = new HashMap<>(); key1.put("ID", 1); Map<String, Integer> key2 = new LinkedHashMap<>(); key2.put("ID", 1); System.out.println("key1.equals(key2)=" + key1.equals(key2)); cache.put(key1, "key 1 value"); System.out.println("cache.containsKey(key1)=" + cache.containsKey(key1)); System.out.println("cache.containsKey(key2)=" + cache

Listing current Ignite jobs and cancelling them

落花浮王杯 提交于 2019-12-11 05:41:07
问题 I got a partial answer here but not exactly what I wanted. The link describes how to get a list of task futures but what I'd really like to be able to do is list out and cancel individual jobs (that might be hung, long running etc etc). I've seen another post implying that this is not possible but I'd like to confirm (see second link) Thanks http://apache-ignite-users.70518.x6.nabble.com/How-can-I-obtain-a-list-of-executing-jobs-on-an-ignite-node-td8841.html http://apache-ignite-users.70518

How to restore cache after ignite server reconnected

戏子无情 提交于 2019-12-11 05:32:27
问题 Really appreciate if someone can help me out. I have an ignite server written in Java, and have a client written in C#, the client can be connected to the server, and can get server's cache correctly. once the server restarted, the client received the EVT_CLIENT_NODE_RECONNECTED event from server. But the cache cannot be used any more. Server code: CacheConfiguration cacheConfiguration = new CacheConfiguration(); cacheConfiguration.setName("Sample"); cacheConfiguration.setCacheMode(CacheMode

Use setIndexedTypes or setTypeMetadata methods on CacheConfiguration to enable. Ignite Error

痞子三分冷 提交于 2019-12-11 05:16:51
问题 I am trying out the simple person example for a read through cache. Set up basic table and here is my code that i am trying to run IgniteConfiguration cfg = new IgniteConfiguration(); cfg.setClientMode(true); cfg.setPeerClassLoadingEnabled(true); // Create store factory. CacheJdbcPojoStoreFactory storeFactory = new CacheJdbcPojoStoreFactory(); storeFactory.setDataSourceBean("dataSource"); CacheConfiguration sampleCache = CacheConfig.cache("sampleCache", storeFactory); sampleCache

Apache ignite node not able to join grid

≯℡__Kan透↙ 提交于 2019-12-11 04:25:39
问题 I'm using static ipfinder configuration installed 2 ignite docker container in 2 different ec2 instances but nodes not able to join each other below are logs [07:40:10,696][INFO][disco-event-worker-#41][GridDiscoveryManager] Topology snapshot [ver=46, servers=2, clients=0, CPUs=6, offheap=3.8GB, heap=2.0GB] [07:40:10,696][INFO][disco-event-worker-#41][GridDiscoveryManager] Data Regions Configured: [07:40:10,696][INFO][disco-event-worker-#41][GridDiscoveryManager] ^-- default [initSize=256.0

Ignite TCP SPI discovery, and memory management in ignite embedded

橙三吉。 提交于 2019-12-11 04:15:32
问题 Use case description: I want to use ignite embedded to maintain in-memory cache to speed up my spark jobs. 1) How does TCP SPI discovery work in ignite embedded mode? The documentation states, that in ignite embedded the life cycle of ignite nodes is managed by spark, and the nodes are started and killed from inside the spark job itself. Since, ignite nodes are bound to YARN containers, so is it still necessary to pass the SPI configuration? or does service discovery happen automatically

how read-through work in ignite

妖精的绣舞 提交于 2019-12-11 01:26:16
问题 my cache is empty so sql queries return null. The read-through means that if the cache is missed, then Ignite will automatically get down to the underlying db(or persistent store) to load the corresponding data. If there are new data inserted into the underlying db table ,i have to down cache server to load the newly inserted data from the db table automatically or it will sync automatically ? Is work same as Spring's @Cacheable or work differently. It looks to me that the answer is no. Cache