Count lines example

2013-06-05 Thread Pedro Sá da Costa
I am trying to create a mapreduce example that add values of same keys. E.g. the input A 1 A 2 B 4 get the output A 3 B4 The problem is that I cannot make the program read 2 inputs. How I do that? Here is my example: package org.apache.hadoop.examples; import java.io.IOException; impor

Re: Count lines example

2013-06-05 Thread Pedro Sá da Costa
I made a mistake in my example. Given 2 files with the same content: file 1 | file 2 A 3 | A 3 B 4 | B 4 gives the output A 6 B 8 On 5 June 2013 21:08, Pedro Sá da Costa wrote: > I am trying to create a mapreduce example that add values of same keys. > E.g. > the input > A 1 >