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

  • SEARCH
  • Home
  • 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 6959079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:13:29+00:00 2026-05-27T15:13:29+00:00

This has ramifications for multi-stage jobs. For example if we sort by key a

  • 0

This has ramifications for multi-stage jobs. For example if we sort by key “a” in phase 1 of the job and key “b” in phase 2 of the job (which takes phase 1 output as stdin), can we assume when the two phases are complete that the records are sorted by key “b” and secondarily by key “a”? For the purpose of this question, assume that the mappers and reducers do not permute record order. Also assume the number of reduce tasks are 1 or more.

Bear in mind the answer may vary depending on the number of reduce tasks for phase 1. For example, if the number of reduce tasks for phase 1 were greater than 1, the key a would be split across multiple files (though in sorted order with respect to each file). However, when there is only one reduce tasks all values will appear in the same file and this may be a necessary condition for stability, depending on implementation.

If the answer is affirmative, a link to appropriate documentation will be most helpful.

Thanks,

SetJmp

  • 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-05-27T15:13:29+00:00Added an answer on May 27, 2026 at 3:13 pm

    By default, Hadoop will not enforce the stable sorting properties you desire.

    Hadoop streaming has Comparator and Partitioner to help sort results from the map to the reduce; take a look here

    Edit: updated broken link

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

Sidebar

Related Questions

This has got me completely stumped: print_r($json); echo json_encode($json); output: Array ( [query] =>
This has been a problem that I haven't been able to figure out for
This has been an adventure. I started with the looping duplicate query located in
This has been driving me crazy for a few days. Why doesn't the following
This has happened to me 3 times now, and I am wondering if anyone
This has got to be something I just missed, but how do I add
This has been troubling me for a few years, and was recently exacerbated by
This has got to be something simple: I set up a frames page with
This has bugged me for a long time. 99% of the time, the GROUP
This has always bugged me. Perhaps someone with some hardcore knowledge of .NET internals

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.