Hi, 

When I run my compute task, it throws below exception. What it may be caused
by?

class org.apache.ignite.IgniteCheckedException: Task map operation produced
no mapped jobs

Thanks
Shawn

-----邮件原件-----
发件人: Shawn Du [mailto:[email protected]] 
发送时间: 2017年1月9日 17:31
收件人: [email protected]
主题: 答复: compute SQL returned data.

Thanks, I already figure it out just As you mentioned.


-----邮件原件-----
发件人: dkarachentsev [mailto:[email protected]]
发送时间: 2017年1月9日 17:24
收件人: [email protected]
主题: Re: compute SQL returned data.

Hi Shawn,

For map-reduce operations is most suitable ComputeTask [1], which has
map/reduce methods. In map() method you may select nodes on which start
processing according to key (refer Ignite.affinity() [2,3]). Result will be
reduced and returned to the client.

In summary, client invokes SQL to collect keys and runs ComputeTask`s mapped
on nodes that has keys/values that should be processed (this will allow not
to transfer over network big values).

[1]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/compute/C
omputeTask.html
[2]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.ht
ml#affinity(java.lang.String)
[3]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/cache/aff
inity/Affinity.html



--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/compute-SQL-returned-data-tp9
890p9967.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to