aanghelescu 2011-04-22, 21:33
Mehmet Tepedelenlioglu 2011-04-22, 21:59
-Re: providing the same input to more than one Map task
Ted Dunning 2011-04-23, 01:33
I would recommend taking this question to the Mahout mailing list.
The short answer is that matrix multiplication by a column vector is pretty
easy. Each mapper reads the vector in the configure method and then does a
dot product for each row of the input matrix. Results are reassembled into
a vector in the reducer.
Mahout has special matrix structures to help with this.
On Fri, Apr 22, 2011 at 2:59 PM, Mehmet Tepedelenlioglu <
[EMAIL PROTECTED]> wrote:
> There is a way:
> Are you working with a sparse matrix, or a full one?
> On Apr 22, 2011, at 2:33 PM, aanghelescu wrote:
> > Hi all,
> > I am trying to perform matrix-vector multiplication using Hadoop.
> > So I have matrix M in a file, and vector v in another file. Obviously,
> > are of different sizes. Is it possible to make it so that each Map task
> > get the whole vector v and a chunk of matrix M? I know how my map and
> > functions should look like, but I don't know how to format the input.
> > Basically I want my map function to output key-value pairs
> > where i is the row number, and j the column number; v(j) is the jth
> > in v. And the reduce function will sum up all the values with the same
> key -
> > i, and that will be the ith element of my result vector.
> > Or can you suggest another way to do it?
> > Thanks,
> > Alexandra
> > --
> > View this message in context:
> > Sent from the Hadoop core-user mailing list archive at Nabble.com.
Alexandra Anghelescu 2011-04-22, 19:15
Kai Voigt 2011-04-25, 13:17
Shi Yu 2011-04-25, 14:09