Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7807369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:50:13+00:00 2026-06-02T02:50:13+00:00

A Combiner runs after the Mapper and before the Reducer,it will receive as input

  • 0

A Combiner runs after the Mapper and before the Reducer,it will receive as input all data emitted by the Mapper instances on a given node. then emits output to the Reducers.

And also,If a reduce function is both commutative and associative, then it can be used as a Combiner.

My Question is what does the phrase “commutative and associative” mean in this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:50:15+00:00Added an answer on June 2, 2026 at 2:50 am

    Assume you have a list of numbers, 1 2 3 4 5 6.

    Associative here means you can take your operation and apply it to any subgroup, then apply it to the result of those and get the same answer:

    (1) + (2 + 3) + (4 + 5 + 6)
      ==
    (1 + 2) + (3 + 4) + (5) + (6)
      ==
    ...
    

    Think of the parenthesis here as the execution of a combiner.

    Commutative means that the order doesn’t matter, so:

    1 + 2 + 3 + 4 + 5 + 6
      ==
    2 + 4 + 6 + 1 + 2 + 3
      ==
    ...
    

    For example, addition, fits this property, as seen before. “Maximum” fits this property above as well, because the max of maxs is the max. max(a,b) == max(b,a).

    Median is an example that doesn’t work: the median of medians is not the true median.


    Don’t forget another important property of a combiner: the input types for the key/value and the output types of the key/value need to be the same. For example, you can’t take in a string:int and return a string:float.

    Often times, the reducer might output some sort of string instead of numerical value, which may prevent you from just plugging in your reducer as the combiner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a c++ console app which runs in visual studio. This collects data
All, I'm trying to split my MSTest test run into multiple runs because I'm
If my Data is Name - playerID - matchID - Innings - Runs James
The current version of hadoop-streaming requires a Java class for the combiner, but i
Is there anyway to combine all resources into a single exe file such as
We have a few different websites running on the same server that all access
We have a test that runs within a transaction scope. We dispose of the
RunTime Error The Data has been changed. I`m having a difficult time with one
A text file holds information about a softball team. Each line has data arranged
I have an ASP MVC3 application that runs fine (in VS 2010 debug) in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.