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

should support calling configure on sorting and grouping comparators if applicable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None

    Description

      From Jacob Metcalf:

      On another subject (maybe I need a new thread/JIRA for this) is it intentional that the configuration is not applied to the sorting and grouping comparators?
      I am writing my own multiple input MR driver to test a reduce side join and had to do:
      // Configure grouping and sorting comparators
      if (keyGroupComparator instanceof Configured )

      { ((Configured)keyGroupComparator).setConf( configuration ); }

      if (keyValueOrderComparator instanceof Configured)

      { ((Configured)keyValueOrderComparator).setConf( configuration ); }

      To get the config applied even though they are Configured objects.

      Attachments

        Activity

          People

            jdonofrio Jim Donofrio
            jacobmetcalf Jacob Metcalf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: