You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Alberto Cordioli <co...@gmail.com> on 2012/10/05 12:17:44 UTC

Problem in Matrix creation

Hi all,

I am trying to create a matrix NxN with a MapReduce routine.
To do so I need to iterate on a list of values and compare all the
items of the list with each other.
The problem is that in the reduce method only an Iterable<Writable> is
given and with such object you cannot compute all the possible pairs
because I need 2 indexes.
Moreover the Iterable is not clonable.

How can I solve this problem? Is there any standard technique to use?


Thanks,
Alberto


-- 
Alberto Cordioli