1. When I run more than 1 task from the same program, the output file of all the
tasks is same. The framework does not allows the 2   map reduce task to have the
same output file as task 1.
That's correct. Your instructor probably intends for you to find a way to merge the files. There's a lot of ways you might do this, both through a Map/Reduce job or just single-threaded on the child machine. The documentation for the FileSystem class and/or SequenceFile.Reader and SequenceFile.Writer may help. Also remember that you can control a lot of how a job runs by changing settings in the JobConf.
3. When the 2 map reduce tasks writes its output to file "output", wont the
previous content of this file get over written
Actually, this will produce an exception since the file already exists.

Reply via email to