@Override
    protected void reduce(Text word, Iterable<IntWritable> values, Context context)
      throws IOException, InterruptedException {
      int sum = 0;
      for (IntWritable val : values) {
        sum += val.get();
      }
      count.set(sum);
      MultiOutputFormat.write("out1", count, word, context);
      MultiOutputFormat.write("out2", word, count, context);
      MultiOutputFormat.write("out3", word, count, context);
    }
Create a file for map input

@return absolute path of the file.
@throws IOException if any error encountered
hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestMultiOutputFormat.java