Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-213

MultipleOutputs for Reducers throws Named output 'test' not defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • None
    • None
    • OSX, IntelliJ, CDH4.6.0

    Description

      I pulled the unit test for testing multiple outputs for a reducer from the patch of MRUNIT-13 and the test fails with the exception:

      java.lang.IllegalArgumentException: Named output 'test' not defined
      at org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.checkNamedOutputName(MultipleOutputs.java:188)
      at org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.write(MultipleOutputs.java:358)
      at org.apache.hadoop.mapreduce.lib.output.MultipleOutputs.write(MultipleOutputs.java:343)

      It looks like multiple reducer outputs needs to be setup in the Configuration object the same way MultipleOutputs.addNamedOutput() does.

      I'm running cdh4.6.0

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jconwell John Conwell
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: