ignite

Apache Ignite : How to list all tables and all Caches

那年仲夏 提交于 2019-12-23 11:46:27
问题 Is there any way to list all tables present in a specific Cache and list all caches present on a Apache Ignite Server? ----------------------------------UPDATED-------------------------- Hi, I am running following code to know Cache name and list all tables present in my cache. This program list outs all cache name present on server. However table listing is printed as blank collection. Meanwhile SQL query present in example is working fine. public static void main(String[] args) throws

Ignite for Spark

℡╲_俬逩灬. 提交于 2019-12-23 04:52:16
问题 I am trying to load ignite cache into spark . But I am getting java.sql.SQLException : Unsupported type 1111 SparkSession spark = SparkSession.builder() .appName("Java Spark SQL data sources example") .config("spark.master", "spark://10.104.146.199:7077") .getOrCreate(); Dataset<Row> df = spark.read().format("jdbc") .option("url", "jdbc:ignite:cfg://cache=DEVICE_CACHE:distributedJoins=false@file:///C:/Users/IBM_ADMIN/Desktop/ignite-client-config-with-timeout.xml") .option("driver", "org

Apache Ignite Loading Twice with Spring-Boot?

只愿长相守 提交于 2019-12-22 08:55:59
问题 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

Hazelcast vs. Ignite benchmark

Deadly 提交于 2019-12-21 07:34:43
问题 I am using data grids as my primary "database". I noticed a drastic difference between Hazelcast and Ignite query performance. I optimized my data grid usage by the proper custom serialization and indexes, but the difference is still noticeable IMO. Since no one asked it here, I am going to answer my own question for all future references. This is not an abstract (learning) exercise, but a real-world benchmark, that models my data grid usage in large SaaS systems - primarily to display sorted

Ignite grid name thread local must be set or this method should be accessed under org.apache.ignite.thread.IgniteThread

不羁岁月 提交于 2019-12-14 02:06:35
问题 What does this error mean? I am trying to retrieve an Ignite cache from within the Apache Spark map function. Did I miss anything here? 回答1: Most likely Ignite or IgniteCache instance was serialized and sent to executor along with the function. You should avoid this and acquire Ignite locally using Ignition . Clarification: Ignite instance can be successfully deserialized in context of Ignite thread, so with Ignite computations it works fine. But in this case it's Spark and sending Ignite to

ClassNotFoundException: org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl

假装没事ソ 提交于 2019-12-13 14:30:59
问题 Hi Guys I'm newbie in Apache Ignite. I've tried to run it on Windows 10 Professional. I've run example-cache example in ignite directory as follows : D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin>bin\ignite.bat examples\config\example-cache.xml I've previously set IGNITE_HOME environment variable to D:\work\tools\apache ignite 1.9.0\apache-ignite-fabric-1.9.0-bin But I have this exception stack : class org.apache.ignite.IgniteException: Failed to create Ignite component

How to properly read from Ignite Cache

有些话、适合烂在心里 提交于 2019-12-13 06:39:45
问题 I have the following application (I'm quite new to this framework) and I'd like to see the cache size (increasing) as it reads messages from the queue but it stays 0 all the time. KafkaStreamer<String, String, String> kafkaStreamer = new KafkaStreamer<>(); Ignition.setClientMode(true); Ignite ignite = Ignition.start(); Properties settings = new Properties(); // Set a few key parameters settings.put("bootstrap.servers", "localhost:9092"); settings.put("group.id", "test"); settings.put(

Ignite Spring Integration seems broken with 2.4 (upgrading from 2.3)

。_饼干妹妹 提交于 2019-12-13 04:09:39
问题 We are upgrading from 2.3 to 2.4 & realized that a change made in IgniteSpringBean which is referenced in this added line in its javadoc resulted in us moving lots of references in PostConstruct to handleContextRefresh. " A note should be taken that Ignite instance is started after all other Spring beans have been initialized and right before Spring context is refreshed. That implies that it's not valid to reference IgniteSpringBean from any kind of Spring bean init methods like PostConstruct

Which distributed database I need to choose for medium data project

ε祈祈猫儿з 提交于 2019-12-13 04:03:17
问题 Now we have java project with PostgreSQL database on spring boot 2 with Spring Data JPA (Hibernate). Requirements to new architecture: On N computers we have workplace. Each workplace use the same program with different configuration (configured client for redistributed database). Computers count is not big - amount 10/20 PCs. Database must be scalable (a lot of data can be stored at the disk ~1/2 Tb). Every day up to 1 million rows can be inserted into database from one workplace. Each

TTL on Ignite 2.5.0 not working

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:59:37
问题 I tried enabling TTL for records in Ignite using 2 approaches, but didn't seems to be working. Need help to understand if I am missing something. IgniteCache cache = ignite.getOrCreateCache(IgniteCfg.CACHE_NAME); cache.query(new SqlFieldsQuery( "CREATE TABLE IF NOT EXISTS City (id LONG primary key, name varchar, region varchar)")) .getAll(); cache.withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.SECONDS, 10))) .query(new SqlFieldsQuery( "INSERT INTO City (id, name, region)