Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-239

Attribute to mark Mappers and Reducers as side-effect free

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There should be an annotation to mark Mapper and Reducer classes as side-effect free. This annotation could then be used to disable speculative execution for such classes. Furthermore, defining a class without the NoSideEffect attribute as a combiner would be a run-time error.

      @NoSideEffects
      class MyMapper extends MapReduceBase implements Mapper

      { ... }

      would declare that MyMapper may be run speculatively.

      @NoSideEffects
      class MyReducer extends MapReduceBase implements Reducer

      { ...}

      declares that MyReducer can be run speculative and as a combiner.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              owen.omalley Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: