Details
Description
o.a.h.h.mapreduce.TableOutputFormat allows writing to a single table as output from a map/reduce job in the natural way. It requires that the user specify the table name ahead of time and can only write to one table. I had a need to write to multiple tables from the same job (write my data to one table, and also write to index tables), and I wanted to have a consistent API whether writing to one or many tables.
Attached MultiTableOutputFormat takes the table name as the key and the Put or Delete as the value. Also included is an example demonstrating the usage.