Explanation: From the mapper, it emits the color as key and its width part as value. In the reducer, for each color we iterate over all the widths value and calculate the maximum width. And emits the color as key and max width as value.
In the reducer part we will calculate the required result, by splitting the each value based on "," and Stores the max value, its id and color, which is grouped by color.
1. Iterative repetition of MapReduce jobs until a desired answer or state is reached. 2. Sequences of MapReduce and Pig jobs. These are limited to linear sequences of actions with exception handlers but no forks. 3. Sequences of MapReduce jobs only; no Pig or Hive tasks or jobs. These MapReduce sequences can be combined with forks and path joins. 4. Sequences of MapReduce and Pig. These sequences can be combined with other actions including forks, decision points, and path joins.