ignite

Sql query over Ignite CacheStore or over database

≡放荡痞女 提交于 2020-01-05 07:22:49
问题 I am a beginner for Ignite, so I have some puzzles, one of which is as follows:when I try to query cache, whether it can look if memory contains or not. If not, then whether it will query database? If not,how to achieve such way? Please help me if you know.Thx. 回答1: Queries work over in-memory data only. You can either use key access (operations like get() , getAll() , etc.) and utilize automatic read-through from the persistence store, or manually preload the data before running queries. For

How to set custom REST port for apache ignite when ignite is started as a service in Opendaylight apache karaf?

与世无争的帅哥 提交于 2020-01-03 05:04:05
问题 Opendaylight uses port 8080 which is the same as the default ignite REST http port. So i tried to change the port on which ignite listens for REST requests. Here is a java code snippet for this. System.setProperty("IGNITE_JETTY_PORT","7111"); System.setProperty("IGNITE_JETTY_HOST","localhost"); ignite = Ignition.start(config); The above works fine and changes the ignite REST port when i run in eclipse. But fails when i start an ignite instance in apache karaf. 回答1: I think you may try with

Ignite for Hibernate L2 is extremely slow

你说的曾经没有我的故事 提交于 2020-01-02 07:14:15
问题 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

Execute SQL on Ignite cache of BinaryObjects

送分小仙女□ 提交于 2020-01-02 07:03:46
问题 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

Apache Ignite - [PDOException] SQLSTATE[IM002] SQLConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified

℡╲_俬逩灬. 提交于 2019-12-25 04:05:10
问题 I have setup apache ignite, loaded data into ignite from Java app and can query using rest apis. I need to query it from PHP so I am trying to connect to Apache Ignite from PHP using pdo_odbc. I have, i) Installed ODBC driver manager - http://www.unixodbc.org/ ii) Built ODBC driver http://apacheignite.gridgain.org/docs/odbc-driver#section-building-on-linux iii) installed Ignite ODBC driver http://apacheignite.gridgain.org/docs/odbc-driver#section-installing-on-linux, iv) configured dsn, http:

Apache Ignite 2.7 IgniteRepository with JPA2 is not injected

狂风中的少年 提交于 2019-12-25 03:38:18
问题 Using guildes founded on the web, I make the simple Spring Boot 2 with Spring Data JPA 2 application. Spring Boot JPA 2 support added to Apache Ignite only with 2.7 version (now it's avatilble only by nightly builds - Apache Ignite 2.7 release date). There are code snippets: Configuration: @Configuration @EnableIgniteRepositories public class SpringDataConfig { @Bean public Ignite igniteInstance() { IgniteConfiguration config = new IgniteConfiguration(); config.setIgniteInstanceName("ignite-1

How to sum an array of doubles with ignite data grid / sql?

我怕爱的太早我们不能终老 提交于 2019-12-24 23:22:36
问题 How to sum an array of doubles with ignite data grid / sql? Given: 1 dimension table MyDimension and 1 fact table MyFact . Join them, group by a few dimensions ** and sum the fact associated with it. Now consider the fact table to sum, doesn't contain a single double value, but an array of doubles. And the sum to retrieve, is an array representing the sum of all the arrays. As an example words: Assume "All the arrays are": array 1: double[] { 1.0, 2.0, 3.0, 4.0, 5.0 } array 2: double[] { 2.0,

Ignite DROP Index - Cache doesn't exist?

三世轮回 提交于 2019-12-24 20:32:26
问题 When running SELECT queries ignite cache discovery happens with no errors, however when attempting to DROP an existing index getting an exception: class org.apache.ignite.internal.processors.query.IgniteSQLException: Cache doesn't exist: <cache_name> The only reference I could find in is in here, with resolution being restarting the caches which is not desired behaviour. Why is cache not found during DDL statements but found for DML? 来源: https://stackoverflow.com/questions/48165353/ignite

Apache Ignite BinaryObject Bloat

不想你离开。 提交于 2019-12-24 20:11:39
问题 I have a custom object which I am converting to BinaryObject (using the BinaryObjectBuilder) before putting it into ignite cache. I calculated the deep size of my custom object and it is about 500 bytes. But when I calculate the size of BinaryObject, it is a whopping ~8 MB. Is this expected? 回答1: If you take a look at BinaryObjectImpl class, you will see, that some fields have @GridDirectTransient annotations, meaning that these fields are ignored during serialization. These are pretty big

Putting cache entries to specific Ignite Server

孤人 提交于 2019-12-24 07:08:25
问题 I have an Ignite data grid of five servers(say A,B,C,D and E). A partitioned cache has been distributed across these five servers with the number of backups set as 1. I want to store 100 million entries in this partitioned cache. But, I want to control the partitioning of my cache entries to the Ignite servers. Is it possible that I can direct my Ignite client to put a cache entry on a particular server (say E)? 回答1: The only way to do this is to implement your own Affinity Function instead