Re: Inconsistency reading cache from code and via REST?

2018-05-09 Thread aealexsandrov
Hi, qryexe doesn't work correct. At some reason it ignores _key and _value in 2.4. You can use qryfldexe as it was describe here: http://apache-ignite-users.70518.x6.nabble.com/Example-of-SQL-query-td21427.html BR, Andrei -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Inconsistency reading cache from code and via REST?

2018-05-02 Thread michael
Hi revisiting this now I am actually connecting to a data source and filling the cache with data: For simplicity the attached code cacheTableTest.java only gets an update of a single string key value pair when

Re: Inconsistency reading cache from code and via REST?

2018-04-24 Thread michael
ok that's great; wasn't too clear from the docs that I needed the addQueryField -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Inconsistency reading cache from code and via REST?

2018-04-23 Thread aealexsandrov
Also I will check why it's not working in next case: CacheConfiguration cfg = new CacheConfiguration<>(); cfg.setIndexedTypes(String.class, String.class); cfg.setName(CACHE_NAME); IgniteCache cache =

Re: Inconsistency reading cache from code and via REST?

2018-04-23 Thread aealexsandrov
Hi Michael, You are trying to work with sql queries. Let me provide to you the example how you can do it: 1) Start ingnite server node 2) Start ignite client node that will create the cache and put some values: StartNode.java

Re: Inconsistency reading cache from code and via REST?

2018-04-23 Thread michael
Following on from his example of a simple cache with key value pairs (now strings! IgniteCache), how would I create a sql query on the data: http://127.0.0.1:8080/ignite?cmd=qryexe=GridCacheTest=1=String=_key+%3D+1 gives: {"successStatus":1,"error":"class

Re: Inconsistency reading cache from code and via REST?

2018-04-20 Thread michael
Hi Andrei I simpler workaround for me for now is just to have keys a strings so REST A few toString() tweaks to the sample code to put/get as strings instead of integers shows this now works as expected both checking the cache in code and from a browser. thanks Michael -- Sent from:

Re: Inconsistency reading cache from code and via REST?

2018-04-19 Thread aealexsandrov
Hi Michael, I reproduced your problem. It's a known issue. Please take a look at this responce to find the workaround: http://apache-ignite-users.70518.x6.nabble.com/How-to-use-rest-api-to-put-an-object-into-cache-td5897.html#a5955 Looks like this problem will be solved for basic types at next

Re: Inconsistency reading cache from code and via REST?

2018-04-19 Thread michael
Hi Andrei 1. Ignite version is 2.3.0 2. xml config - attached. Actually example-ignite.xml and imported resource example-default.xml. N.B. this is the deafult xml I got from install but with peerClassLoadingEnabled set to true since I was also testing the broadcast functionality. 3.

Re: Inconsistency reading cache from code and via REST?

2018-04-18 Thread aealexsandrov
Hi Michail, Could you please provide next information: 1)Ignite version 2)your ignite xml config 3)your reproducer (GridCacheTest). Looks like it wasn't attached. Also if you are using Ignite 2.4 then do you add your servers to baseline topology using control.sh before cluster activation?

Inconsistency reading cache from code and via REST?

2018-04-18 Thread michael
My Setup in windows - all running locally pointing at same ignite xml config - 2 * ignite servers running ignite.bat - Provided java sample code GridCacheTest (running in IntelliJ) to put 20 key value pairs in a cache The sample code runs correctly and outputs the key/value pairs it reads