You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by tobscher <to...@salecycle.com> on 2017/08/15 16:33:28 UTC

SqlQuery inside affinityCall

Hi,

I am having issues getting the following setup to work:
1. Client node which submits a job via affinityCall
2. Server nodes that should run a SQL query to retrieve a list from my cache
and then do some computation on the data
3. Returns a result (true/false)
4. peerClassLoading enabled

When I submit a job via affinityCall I am receiving a ClassNotFound
exception for my Key class. It's worth pointing out that my model classes
are included as a dependency and are not directly part of the client
application.

Here is a link to my gist:
https://gist.github.com/tobscher/5d1dc12848d781e8587532168eafe7c8

Is it possible to submit a job and then run a local SQL query? Is there a
way to tell the server nodes which models do exist or do I have to provide
the models in the class path (e.g. peerClassLoading doesn't work in this
scenario)?

Thanks for your help.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/SqlQuery-inside-affinityCall-tp16205.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: SqlQuery inside affinityCall

Posted by vkulichenko <va...@gmail.com>.
Peer class loading is not applied to model classes (keys and values). You
should either deploy they explicitly,  or use BinaryObject API when
accessing the cache:
https://apacheignite.readme.io/docs/binary-marshaller#binaryobject-cache-api

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/SqlQuery-inside-affinityCall-tp16205p16212.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.