Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-5740

MapReduce partitioning/sorting classes should be able to have access to MapReduceTaskContext

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.5.0
    • Component/s: API, MapReduce
    • Labels:
    • Release Notes:
      Provide access to Partitioner and Comparator classes to MapReduceTaskContext by implementing ProgramLifeCycle
    • Rank:
      1|hzy5q7:

      Description

      Currently, Mapper and Reducer classes can implement ProgramLifeCycle<MapReduceTaskContext> and their initialize method will get called with a MapReduceTaskContext.

      The Partitioner, GroupComparator, and SortComparator should also have similar functionality.

      Relevant classes:
      https://hadoop.apache.org/docs/stable/api/org/apache/hadoop/mapreduce/Partitioner.html
      https://hadoop.apache.org/docs/r2.6.2/api/org/apache/hadoop/io/RawComparator.html

      Perhaps we should also provide this functionality to PathFilter class.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ali.anwar Ali Anwar
                Reporter:
                ali.anwar Ali Anwar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: