Re: Submitting compute jobs from client node

2021-11-07 Thread Surinder Mehra
Hi, I have one more query. In my usecase, i submit thousands of similar compute tasks as ignite callable from ignite client to server nodes. And i have deployed app libs on ignite nodes to avoid peer class loading network cost. As per my understanding, as soon as ignute client submit task to grid,

Re: Submitting compute jobs from client node

2021-10-30 Thread Surinder Mehra
Hi, I found the list. So required list is: annotations.jar kotlin-reflect.jar kotlin-stdlib.jar kotlin-stdlib-common.jar kotlin-stdlib-jdk8.jar For something very basic, only thing I only needed was kotlin-stdlib.jar(1.5.31) to run my program. I guess others are needed as required. Thanks for hel

Re: Submitting compute jobs from client node

2021-10-30 Thread Surinder Mehra
I have mixed setup, where java client trying to run kotlin function on ignite server. Also i dont run server and client in intelliJ. If I run both client and server in IntelliJ, it works. So I am trying to find out what list of jars IntelliJ is providing which are missing in standalone ignite nod

Re: Submitting compute jobs from client node

2021-10-29 Thread Stephen Darlington
As long as it can peer-class-load the necessary classes (or they’re already deployed on the server side) it should work. This works on my machine: val cfg = IgniteConfiguration() .setClientMode(true) .setPeerClassLoadingEnabled(true) Ignition.start(cfg) .use { ignite ->

Re: Submitting compute jobs from client node

2021-10-29 Thread Surinder Mehra
Hi Thanks much for investigating it with me. After spending lot of time on it, I found that client and servers were running on different JDK versions. Client running in java 11 was submitting tasks to server node running on java 8. I upgraded java version on server node and it worked. Actually I

Re: Submitting compute jobs from client node

2021-10-27 Thread Stephen Darlington
Using Ignite 2.11 and the following code works. Server: public class ComputeServer { public static void main(String[] args) { IgniteConfiguration igniteConfiguration = new IgniteConfiguration() .setPeerClassLoadingEnabled(true); Ignite ignite = Ignition.start(ig

Re: Submitting compute jobs from client node

2021-10-27 Thread Surinder Mehra
Just wondering if it is possible at all. All examples/demos I have seen are either using a thin client or one server node submitting a task to the grid, or with affinity to a particular node. I have tried all compute apis, like run, call, runAffinity. callaffinity, broadcast. none of them works wh

Re: Submitting compute jobs from client node

2021-10-27 Thread Surinder Mehra
yes, it is enabled. Even if that wasn't enabled, I should get class not found error. Here i dont get any error but its simply doesn't execute. I see below flag needs to be enabled for thin client. Is there any setting for thick clients as well ? https://ignite.apache.org/docs/latest/thin-clients/j

Re: Submitting compute jobs from client node

2021-10-27 Thread Stephen Darlington
Did you enable peer class loading? > On 27 Oct 2021, at 13:18, Surinder Mehra wrote: > > Hi, > I have a sever node and a thick client node running. I am trying to submit > ignite compute job from client node to server node but it doesn't work. > > ClusterGroup grp = ignite.cluster().forServers

Submitting compute jobs from client node

2021-10-27 Thread Surinder Mehra
Hi, I have a sever node and a thick client node running. I am trying to submit ignite compute job from client node to server node but it doesn't work. ClusterGroup grp = ignite.cluster().forServers() IgniteCompute ignieCompute = ignite.compute(grp); igniteCompute.run(() -> System.out.println("Tas