ignite

Apache Ignite - (jvm-pause-detector-worker) Possible too long JVM pause:

三世轮回 提交于 2019-12-07 06:35:22
问题 After using apache ignite 2.6, I am getting this warning constantly on JBoss start and stop. Could you please help me to know whats wrong configuration will lead this warnings. Please let me know if you need any more details 回答1: Most probably, JVM is experiencing long garbage collection pauses. You can configure detailed GC logs to see how much time is spent in GC: https://apacheignite.readme.io/docs/jvm-and-system-tuning#section-detailed-garbage-collection-stats Try adding more heap to

Ignite.NET插件示例:分布式Semaphore(信号量)

 ̄綄美尐妖づ 提交于 2019-12-06 17:40:34
Ignite.NET从2.0版本开始,引入了 插件系统 ,插件可以仅在于.NET环境中,也可以在于.NET + Java混合环境中,本文会描述如何在后者实现插件。 为什么需要插件? Ignite.NET构建于Ignite(用Java编写)之上,JVM会在.NET进程中启动,.NET部分与Java部分进行交互,并尽可能重用现有的Ignite功能。 插件系统将此平台交互机制公开给第三方,主要场景之一是在.NET中可以使用Ignite和第三方Java API。 这种API的一个典型事例是 IgniteSemaphore ,该功能在Ignite.NET中尚不可用。 分布式Semaphore API Ignite中的Semaphore类似于 System.Threading.Semaphore ( MSDN ),但是是在整个集群中生效的,限制在所有Ignite节点上执行指定代码段的线程数。 代码大致如下: IIgnite ignite = Ignition.GetIgnite(); ISemaphore semaphore = ignite.GetOrCreateSemaphore(name: "foo", count: 3); semaphore.WaitOne(); // Enter the semaphore (may block) // Do work semaphore

Apache Ignite Cache Error:caused by java.lang.illegalstateexception : Cache has been closed or destroyed: cacheName

懵懂的女人 提交于 2019-12-06 13:54:56
问题 The exception sometimes comes on the start of application,more frequently during the performance of the application .Moreover,the application starts slowly. 回答1: Most likely your client node disconnects for some reason. You can check this by subscribing to EVT_CLIENT_NODE_DISCONNECTED event on the client (see [1] for more info on how to do this). If this happens frequently, then there are some serious issues. The first thing I would check is the memory. Make sure that you're not running out

How to cache Dataframe in Apache ignite

两盒软妹~` 提交于 2019-12-06 08:13:45
I am writing a code to cache RDBMS data using spark SQLContext JDBC connection. Once a Dataframe is created I want to cache that reusltset using apache ignite thereby making other applications to make use of the resultset. Here is the code snippet. object test { def main(args:Array[String]) { val configuration = new Configuration() val config="src/main/scala/config.xml" val sparkConf = new SparkConf().setAppName("test").setMaster("local[*]") val sc=new SparkContext(sparkConf) val sqlContext = new org.apache.spark.sql.SQLContext(sc) val sql_dump1=sqlContext.read.format("jdbc").option("url",

Failed to retrieve Ignite pods IP addresses

…衆ロ難τιáo~ 提交于 2019-12-05 22:44:51
I am trying to run apache ignite cluster using Google Kubernetes Engine. After following the tutorial here are some yaml files. First I create a service - ignite-service.yaml apiVersion: v1 kind: Service metadata: # Name of Ignite Service used by Kubernetes IP finder. # The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName. name: ignite namespace: default spec: clusterIP: None # custom value. ports: - port: 9042 # custom value. selector: # Must be equal to one of the labels set in Ignite pods' # deployement configuration. app: ignite kubectl create -f ignite-service.yaml Second,

Execute SQL on Ignite cache of BinaryObjects

我与影子孤独终老i 提交于 2019-12-05 21:53:25
I am creating a cache of BinaryObject from spark a dataframe and then I want to perform SQL on that ignite cache. Here is my code where bank is the dataframe which contains three fields (id,name and age): val ic = new IgniteContext(sc, () => new IgniteConfiguration()) val cacheConfig = new CacheConfiguration[BinaryObject, BinaryObject]() cacheConfig.setName("test123") cacheConfig.setStoreKeepBinary(true) cacheConfig.setIndexedTypes(classOf[BinaryObject], classOf[BinaryObject]) val qe = new QueryEntity() qe.setKeyType(TestKey) qe.setValueType(TestValue) val fields = new java.util.LinkedHashMap

Ignite for Hibernate L2 is extremely slow

余生颓废 提交于 2019-12-05 18:20:53
I have system with Hibernate, Spring, PostgreSQL, MongoDB, Neo4j and ElasticSearch working with EhCache for Hibernate L2 and Spring Cache, it works well. I'm testing Ignite but the system became extremely slow when I put Ignite for Hibernate L2 (with Spring Cache works fast), I put JProfiler to see what is really slow and I just saw the follow methods extremely slow: org.postgresql.core.VisibleBufferedInputStream.read(byte[ ], int, int) org.postgresql.jdbc2.AbstractJdbc2Statement.parseSql javax.persistence.EntityManager.find This doesn't make much sense to me. I'm using Ignite 1.5.1.final

Using Ignite on JDK 9

点点圈 提交于 2019-12-05 16:04:55
I am having trouble using Ignite on JDK 9. I have the following minimal testcase: package no.ovstetun.ignite; import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi; import org.junit.Test; public class FailingIgniteTest { @Test public void failingIgnite() { TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi(); } } This code sample fails with the following stacktrace: java.lang.ExceptionInInitializerError at org.apache.ignite.internal.util.IgniteUtils.<clinit>(IgniteUtils.java:769) at org.apache.ignite.spi.IgniteSpiAdapter.<init>(IgniteSpiAdapter.java:119) at org.apache.ignite.spi.discovery

Apache Ignite Loading Twice with Spring-Boot?

戏子无情 提交于 2019-12-05 13:52:49
I'm prototyping something with Spring-Boot 1.2.7.RELEASE and Apache Ignite 1.4.0 and noticed something a little odd, maybe it's a just a logging configuration. It looks like Apache Ignite is trying to start twice with Spring? If I comment out the SpringApplication.run line then it looks like it only starts once. Maybe I'm not using Spring with Apache Ignite correctly? pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

Ignite issue when a node in the cluster becomes unstable unable to join the cluster and hangs indefinitely

时光总嘲笑我的痴心妄想 提交于 2019-12-05 03:41:53
问题 HI I am facing a critical issue with Ignite in our production servers . We have 2 instances with heap sizes of 8gb each . Sometimes due to long gc pause or network issue one of our instances gets stopped . This causes aws auto-scaling to kick in and bring another instance up . This is fine but we have observed that in tis state the grid becomes unstable and our new ignite instaces are never able to join the topology and hang forever causing new autoscaled instances to come again and again