You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by shivakumar <sh...@gmail.com> on 2019/01/23 17:47:08 UTC

is peerClassLoadingEnabled in client mode makes difference

when peerClassLoadingEnabled is enabled in client node which joins the
cluster of servers, if any class/jar placed in client class path, is it
possible to use those classes/jar by servers?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: is peerClassLoadingEnabled in client mode makes difference

Posted by Denis Magda <dm...@apache.org>.
Shiva,

Just to clarify, the peer class loading (p2p) is a global setting and can
be set to on/off for particular nodes.

As for your case, the client has to send a compute tasks or execute
p2p-enabled API first and after that a server which will be processing the
task/request will preloading missing classes. Do you use p2p this way?

-
Denis


On Wed, Jan 23, 2019 at 10:15 AM shivakumar <sh...@gmail.com>
wrote:

> hi stan,
> thanks for your reply!!
>
> but in my case, i deployed ignite in kubernetes environment and starting a
> client node on VM, which connects to ignite server(client is configured to
> use  org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder
> as discovery mechanism and provided IP address of ignite server
> pods/containers )
> and i am placing "keytype" and "valuetype"(custom key and values) class
> files in clientnode's class path (under libs folder of apache ignite HOME
> path where i start client process) but servers are not loading these
> classes
> and throwing class not found exception for those classes and if i place
> those classes inside pods its loading the classes.
> why it is not loading the class files when i placed on client side even
> when
> peerClassLoading is enabled on client side?
> am I missing something?
>
> with thanks,
> shiva
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: is peerClassLoadingEnabled in client mode makes difference

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Some uses of classes will be peer class loaded but not all. Key/value types
are NOT peer class loaded. You will have to either deploy them to server
nodes, or to use .withKeepBinary() where possible.

Another notable exception is that Services will not be peer class loaded.

Regards,
-- 
Ilya Kasnacheev


ср, 23 янв. 2019 г. в 21:15, shivakumar <sh...@gmail.com>:

> hi stan,
> thanks for your reply!!
>
> but in my case, i deployed ignite in kubernetes environment and starting a
> client node on VM, which connects to ignite server(client is configured to
> use  org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder
> as discovery mechanism and provided IP address of ignite server
> pods/containers )
> and i am placing "keytype" and "valuetype"(custom key and values) class
> files in clientnode's class path (under libs folder of apache ignite HOME
> path where i start client process) but servers are not loading these
> classes
> and throwing class not found exception for those classes and if i place
> those classes inside pods its loading the classes.
> why it is not loading the class files when i placed on client side even
> when
> peerClassLoading is enabled on client side?
> am I missing something?
>
> with thanks,
> shiva
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

RE: is peerClassLoadingEnabled in client mode makes difference

Posted by shivakumar <sh...@gmail.com>.
hi stan,
thanks for your reply!!

but in my case, i deployed ignite in kubernetes environment and starting a
client node on VM, which connects to ignite server(client is configured to
use  org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder
as discovery mechanism and provided IP address of ignite server
pods/containers ) 
and i am placing "keytype" and "valuetype"(custom key and values) class
files in clientnode's class path (under libs folder of apache ignite HOME
path where i start client process) but servers are not loading these classes
and throwing class not found exception for those classes and if i place
those classes inside pods its loading the classes.
why it is not loading the class files when i placed on client side even when
peerClassLoading is enabled on client side?
am I missing something?

with thanks,
shiva



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: is peerClassLoadingEnabled in client mode makes difference

Posted by Stanislav Lukyanov <st...@gmail.com>.
Yes, that’s actually the intended usage.

Stan

From: shivakumar
Sent: 23 января 2019 г. 20:47
To: user@ignite.apache.org
Subject: is peerClassLoadingEnabled in client mode makes difference

when peerClassLoadingEnabled is enabled in client node which joins the
cluster of servers, if any class/jar placed in client class path, is it
possible to use those classes/jar by servers?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/