Hi Rishi, You job is executed on a server node, which doesn't have Person class on classpath. To deploy your code on server side simply create a JAR with required classes and put it into IGNITE_HOME/libs folder before starting the nodes.
Another way to overcome the issue is utilize BinaryObject API [1]. To do this, use withKeepBinary() flag on the cache: // Note that now BinaryObject is used as a value instead of Person. IgniteCache<Integer, BinaryObject> cache = ignite.cache(CACHE_NAME).withKeepBinary(); // get() will return instance of BinaryObject which is a binary representation of the value. BinaryObject value = cache.get(); BinaryObject allows you to read values of individual fields without deserialization into Person instance. As long as deserialization is not happening, class is not needed. [1] https://apacheignite.readme.io/docs/binary-marshaller -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Issue-while-using-Affinity-function-for-mapping-keys-with-nodes-tp9580p9609.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
