Querying over fields in the object inside Cache value

2016-12-07 Thread Gaurav Bajaj
Hi, Is is possible to query (Scan, Sql etc) cache on the fields inside object in the Cache value? For example : Employee has a Address Address has fields like Street, Zip code, City Cache Key : Emp Id Cache Value : Employee Is it possible to Index or Query on field "City" in the above scenario?

Re: NullPointerException on ScanQuery

2016-12-07 Thread Alper Tekinalp
Hi all. It seems one method uses affinity: cctx.affinity().primaryPartitions(n.id(), topologyVersion()); other uses topology API. cctx.topology().owners(part, topVer) Are these two fully consistent? On Tue, Dec 6, 2016 at 4:58 PM, Alper Tekinalp wrote: > Hi all. > > We have 2 servers and a

Re: Querying over fields in the object inside Cache value

2016-12-07 Thread Sergi Vladykin
Yes, this is possible. If you have QuerySqlField annotation on Employee.address and the same annotation on Address.city, then the field CITY must be available for SQL queries. Sergi 2016-12-07 11:04 GMT+03:00 Gaurav Bajaj : > Hi, > > Is is possible to query (Scan, Sql etc) cache on the fields i

Re: Querying over fields in the object inside Cache value

2016-12-07 Thread Gaurav Bajaj
Great. Thanks for prompt reply. What is the way to indicate same via configuration? For example, for Address it will be as per below, but not sure how to do it for City.

Re: Querying over fields in the object inside Cache value

2016-12-07 Thread Sergi Vladykin
Yes, in QueryEntity you have to define it using a dot notation. Sergi 2016-12-07 12:22 GMT+03:00 Gaurav Bajaj : > Great. Thanks for prompt reply. What is the way to indicate same via > configuration? > > For example, for Address it will be as per below, but not sure how to do > it for City. > >

Re: How can I call a Java Service from .NET

2016-12-07 Thread Pavel Tupitsyn
Hi Gordon, I've just added documentation for this feature: https://apacheignite-net.readme.io/docs/calling-java-services Let me know if something is missing. Thanks, Pavel On Wed, Dec 7, 2016 at 6:18 AM, Gordon Reid (Nine Mile) < gordon.r...@ninemilefinancial.com> wrote: > Hi, > > > > We have

Re: Querying over fields in the object inside Cache value

2016-12-07 Thread Gaurav Bajaj
Perfect Thanks for prompt reply. On Wed, Dec 7, 2016 at 10:32 AM, Sergi Vladykin wrote: > Yes, in QueryEntity you have to define it using a dot notation. > > Sergi > > 2016-12-07 12:22 GMT+03:00 Gaurav Bajaj : > >> Great. Thanks for prompt reply. What is the way to indicate same via >> configura

Re: How to pass variable to the configuration file

2016-12-07 Thread yucigou
Hi AG, That looks good. Now I can set my properties file ${MY_APP_HOME}/conf/apache-ignite.properties accordingly for the production cluster and failover cluser: * Production nodeIpAddresses=10.22.3.30,10.22.3.31,10.22.3.32,10.22.3.33 * Failover nodeIpAddresses=10.22.4.30,10.22.4.31,10.22.4.32,1

peerClassLoading

2016-12-07 Thread Alisher Alimov
Hello! I have got a problem. I have 3 ignite (1.7 ver) nodes in the test cluster. On one of them placed ignite server with NodeFilter class that is locally available but I can’t deploy service “km.service” with provided NodeFilter into the cluster (when number of ignite service > 2) ClassNotF

Re: NullPointerException on ScanQuery

2016-12-07 Thread Andrey Gura
The difference is the first method returns all primary partitions for given node ID and topology version while the second returns all node IDs that own by given partition on given topology version. Did you executed query on stable topology? Is it reproducible problem? On Wed, Dec 7, 2016 at 12:06

Re: NullPointerException on ScanQuery

2016-12-07 Thread Alper Tekinalp
Hi Andrey. The difference is the first method returns all primary partitions for given > node ID and topology version while the second returns all node IDs that own > by given partition on given topology version. > So if I get some partitions [1,3,5] with first method for node X, I expect to get

Re: NullPointerException on ScanQuery

2016-12-07 Thread Andrey Gura
Could you please share your reproducer example? On Wed, Dec 7, 2016 at 3:11 PM, Alper Tekinalp wrote: > Hi Andrey. > >> The difference is the first method returns all primary partitions for >> given node ID and topology version while the second returns all node IDs >> that own by given partition

Update a column of cache entities - Ignite 1.7

2016-12-07 Thread Anil
HI, is there any way to update a column value in ignite other than EntryProcessor ? IgniteCache#invokeAll(keys, EntryProcessor) need the keys in hand.

Re: Not able to join cluster with Zookeeper based IP finder

2016-12-07 Thread ghughal
Yakov, We are configuring 47101 port for external address resolver. I provided code we use to configure ignite node in my original post. Essentially for one of the node it will be like this: (port 47101 is just one port we chose as it was one of unused port) Are you suggesting if we use address

Re: How can I call a Java Service from .NET

2016-12-07 Thread Denis Magda
Pavel, Awesome, I didn’t know Service Grid is capable to work this way! You should have documented this feature earlier ;) However, this statement doesn’t look 100% true All nodes (Java-only and .NET) should have Java service classes deployed locally. See Ignite Java documentation: Service Grid

Re: peerClassLoading

2016-12-07 Thread Denis Magda
Hi Alisher, A node filter must be added to the classpath of all the nodes regardless of the fact whether you’re going to deploy a service there or not. Please refer to this documentation section for more details https://apacheignite.readme.io/docs/service-grid#deployment-management

Ignite 1.6.0 suspected memory leak from DynamicCacheDescriptor

2016-12-07 Thread tysli2016
We have 2 machines (M1, M2) In M1 running a Ignite server (I1) and a Tomcat server (T1), which hosted 2 Ignite clients (C1a, C1b), similarly in M2 running a Ignite server (I2) and a Tomcat server (T2), which hosted 2 Ignite clients (C2a, C2b). OutOfMemoryError were found in both T1 and T2 yesterda

Re: How can I call a Java Service from .NET

2016-12-07 Thread gordon.reid@ninemilefinancial
Champion. Thanks. ptupitsyn wrote > Hi Gordon, > > I've just added documentation for this feature: > https://apacheignite-net.readme.io/docs/calling-java-services > > Let me know if something is missing. > > Thanks, > Pavel > > On Wed, Dec 7, 2016 at 6:18 AM, Gordon Reid (Nine Mile) < > gord

Re: NullPointerException on ScanQuery

2016-12-07 Thread Alper Tekinalp
Hi. Could you please share your reproducer example? I added classes to repoduce the error. It also throws cache closed errors I am ok with it. But others. -- Alper Tekinalp Software Developer Evam Streaming Analytics Atatürk Mah. Turgut Özal Bulv. Gardenya 5 Plaza K:6 Ataşehir 34758 İSTANBUL

Re: Update a column of cache entities - Ignite 1.7

2016-12-07 Thread Yakov Zhdanov
You can send IgniteCompute.affinityCall() to the primary node that holds the partition you are interested in. Inside the closure you can have iteration and invoke() calls that will be local to the primary copy. If you need to process the entire cache data set then send as many affinityCall's as you

Re: Not able to join cluster with Zookeeper based IP finder

2016-12-07 Thread Yakov Zhdanov
I think it can work fine if along with incorrect addresses node also get correct (means address that is listened to by Ignite on some host) addresses on start. AddressResolver should be used if you want to build topology having different parts of it behind NAT, for example. If it is plain network,