Re: Ignite native persistence

2019-12-02 Thread niamin
Tried with appending cache name as schema with no success. Attach is a link to my project: https://drive.google.com/open?id=1F53um8TeUK45U3SOW0_Vlj04S8DWyjKI Please take a look. I suspect it is something in my code. Thanks, Naushad -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite native persistence

2019-11-26 Thread niamin
ignite_sql_error.ignite_sql_error ARInvoiceRepository.java Attached is the file containing statcktrace and the r

Re: Ignite native persistence

2019-11-26 Thread niamin
I found what I was doing wrong. I can now load/pre-fetch from 3rd party store to cache. It looks like the data is present in in-memory cache but also stored in the persistent store. However, when I run a native query configured on my SpringData Repository I get an error that the SQL table mentioned

Re: Ignite native persistence

2019-11-26 Thread niamin
Thanaks Denis. However, how do or should I preload the data to disk first? Or as Ignite fetches data from the 3rd part datastore it is expected to distribute between RAM and disk? Is there an example project that implements this strategy? On my POC, I have SpringBoot project that includes the Ignit

Ignite native persistence

2019-11-25 Thread niamin
What is the right way to enable native persistence? As per Ignite documentation, I added the following property to enable native persistence:

public @interface Query

2019-11-23 Thread niamin
Are there examples of how to use this annotation on Spring Data repository? I am not able to fetch records using select * from whatever format. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

public @interface Query

2019-11-22 Thread niamin
Are there examples of how to use this annotation on Spring Data repository? I am not able to fetch records using select * from whatever format. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Spring Data native Query support

2019-10-30 Thread niamin
Does Ignite provide native Query support using Spring Data? I am not able to bootstrap my application when I configure my Repository to include a method that implements a native query as below: @Repository @RepositoryConfig(cacheName = "FOO") public interface ARInvoiceRepository extends Ig

Re: Getting same erasure error during compilation

2019-10-30 Thread niamin
Can you share a pom.xml that includes the dependencies that have been tested and known to work with Spring Data? I used spring-data-2.0 but still cannot get to work with Spring Data integration due to additional errors. Thanks, Naushad -- Sent from: http://apache-ignite-users.70518.x6.nabble.co

Getting same erasure error during compilation

2019-10-29 Thread niamin
Hello, I am trying to use Ignite with Spring Data JPA. However I am unable to compile the project because of the following error: ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project arinvoiceservice: Compilation failure [ERROR] /U

Re: Ingite node in SpringBoot App

2019-10-29 Thread niamin
I am running from my IDE and i can confirm that it runs. Below are some output from console: 2019-10-27 17:09:13.172 INFO 8601 --- [ange-worker-#38] o.a.i.i.p.cache.GridCacheProcessor : Finish proxy initialization, cacheName=FOO, localNodeId=bf4963b5-8a84-4c66-8709-23b043c4f9bd 2019-10-27 1

Re: Ingite node in SpringBoot App

2019-10-25 Thread niamin
The is no error rather failed use case. I expected the following statement to be a cache hit: ARInvoice arInvoice = clientCache.get(arInvoiceId); And subsequently, the following statement to be printed on console: System.out.println("retrieved deserialized successfully from cache " + arInvoice

Re: Ingite node in SpringBoot App

2019-10-23 Thread niamin
Update: I updated IgniteClientStarter.java to use Ignite instead of IgniteClient. Now I can see that the 'new' node joins the cluster and starts cache with mode=PARTITIONED. Also cache fetch is successful. This is still not optimal as I would like to use the 'new' node in client mode to avoid loadi

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
1. Run the IgniteCacheLoader project. This should start an Ignite node with the cache named FOO populated with 100 entries. The executeTransaction() method within IgniteCacheLoader5.java validates that a fetch operation works successfully. 2. Run the ignite-client project in parallel. However, the

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
Here is the link to the dependency. You will need to add to drop it to your local maven repo at the desired directory: https://drive.google.com/open?id=1z9TexorvaoQhhDVJp5YlUM6z6eQm32iW -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-22 Thread niamin
Links to the client and the server project: https://drive.google.com/open?id=1QhVjgtwfJ_9UTj4Qkquj1pWnRX_0Fsa4 https://drive.google.com/open?id=1fD5dPy3hvaC4LaYHHIHHgr92mS7eiyUc -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-21 Thread niamin
Unable to upload since the projects are larger than 5 MB. Can you share your google id? Thanks, Naushad -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Looks like it is something with the using ARInvoiceId as key. All the other combinations of key/value(String/String, String/ARInovice) can be retrieved from thin client. I also serialized the ARInvoiceId object to a file from client project and was able to to deserialize successfully from the serve

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Looks like it is something with the using ARInvoiceId as key. All the other combinations of key/value(String/String, String/ARInovice) can be retrieved from thin client. I also serialized the ARInvoiceId object to a file from client project and was able to to deserialize successfully from the serve

Re: Striim support for Ignite

2019-10-18 Thread niamin
So my use case is to be able use SQL/Query API on my existing system to retrieve from Ignite in-memory Grid. I don't expect a lot of write-through from Ignite. I DO expect most of my writes to happen on my RDBMS. I don't see any option rather than writing custom code on RDBMS(may be triggers) to ca

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
Thanks! That worked. Now when I try to fetch object using thin client from a seperate process I get no object. However, when I fetch object using the same server process I get object. Difference on fetching object is the usage of Ignite or IgniteClient. Attached is the client driver. IgniteClien

Re: Striim support for Ignite

2019-10-18 Thread niamin
There isn't anything that I can find. For synching data i.e. CDC between RDBMS and Ignite what would you recommend? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ingite node in SpringBoot App

2019-10-18 Thread niamin
springbeans.zip Here you go. I've tried with @PostConstruct and EventListener but in both occasions Ignite engine stops immediately after application bootstrap with the following: [09:32:03] Ignite node stopped OK [upti

Ingite node in SpringBoot App

2019-10-17 Thread niamin
I've created a SpringBoot App that includes code to start an Ignite standalone node and populates a cache. The logic is wrapped in a PostConstruct method on a Bean. However Ignite server stops as soon as app returns from the method to start Ignite server and populate cache. I would like to be able

Striim support for Ignite

2019-10-16 Thread niamin
Is there any plan to add Ignite connector for Striim to facilitate CDC? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Does Ignite support Distributed and Remote Second Level Cache for Hibernate?

2019-10-06 Thread niamin
Not finding any example in your examples rep so checking. Please share if there is one -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

ClassCastException retrieving cached object

2019-10-05 Thread niamin
Working with Ignite 2.7.6 using spring config from your examples so peerclassloading is enabled. I get ClassCastException retrieving cached object. Works fine if I set and get cached object as BinaryObject. However, I am trying to complete a POC using a persistent store table which consists of a co