Giter Site home page Giter Site logo

Comments (6)

coyotemarin avatar coyotemarin commented on July 19, 2024

It would probably also make sense to have a sort_values option that basically tells mrjob to pick any partitioner that sorts the values passed to a given reducer.

from mrjob.

irskep avatar irskep commented on July 19, 2024

Why is this closed? I don't see any new code for it...

from mrjob.

jretz avatar jretz commented on July 19, 2024

Uh, I didn't mean to close it - I just read it and didn't think I clicked anything but I must have.

from mrjob.

coyotemarin avatar coyotemarin commented on July 19, 2024

MRJobs should also have a SORT_VALUES attribute; if this is True, we pick a partitioner that sorts the values passed to any given reducer (there's a different one you should use depending on the Hadoop version). Probably runners should have a matching sort_values option that can't be defaulted from mrjob.conf.

from mrjob.

coyotemarin avatar coyotemarin commented on July 19, 2024

So, after doing some hand-testing, it isn't so simple as just setting the partitioner class.

Essentially what you have to do is get Hadoop to believe the entire line is the key (so it will sort by it), and then partition in such a way that all lines containing the same actual key go to the same reducer.

Now that I know this, this section of the Hadoop Streaming docs makes more sense.

from mrjob.

coyotemarin avatar coyotemarin commented on July 19, 2024

Breaking out sorting by value into a separate ticket: #240.

from mrjob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.