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

Attribute to mark Mappers and Reducers as side-effect free

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • 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

            Unassigned Unassigned
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: