Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating Multiple Output files with Hadoop 0.20+

I am trying to output the results of my reducer to multiple files. The data results are all contained in one file, and the rest of the results are split based on a category in their respected files. I know with 0.18 that you can do this with MultipleOutputs and it has not been removed. However, I am trying to make my application 0.20+ compliant. The existing Multiple outputs functionality still requires JobConf (which my application uses Job, and Configuration). How can I generate multiple outputs based on the key?

like image 531
monksy Avatar asked Dec 23 '22 06:12

monksy


1 Answers

Support for MultipleOutputs isn't in 0.20. You will need to use the older API.

It has been added into 0.21 which is currently unreleased as org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.

This thread on the mailing list talks about this problem.

like image 168
Binary Nerd Avatar answered Jan 13 '23 00:01

Binary Nerd