Comments (6)
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.
Why is this closed? I don't see any new code for it...
from mrjob.
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.
MRJob
s 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.
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.
Breaking out sorting by value into a separate ticket: #240.
from mrjob.
Related Issues (20)
- upgrade boto3/botocore to support StepConcurrencyLevel HOT 2
- fetching progress from resource manager shouldn't rely on SSH tunnel
- progress indicators are wrong when steps run simultaneously HOT 1
- useless return value from make_pooled_cluster() in pooling tests
- pool_wait_minutes shouldn't wait if pool is empty
- add pool_timeout_minutes option
- add pool_jitter_seconds option HOT 1
- Error when running on hadoop "Found 2 unexpected arguments on the command line" HOT 1
- add_passthru_arg on hadoop
- It possible to prevent decompression and/or splitting in local or inline mode
- Can I write map and reduce in many different class?
- Assign tags on EMR creation in single API call
- ignore unrecognized arguments HOT 1
- code breaks locally but runs fine remotely on hadoop cluster HOT 2
- Hadoop counter in mrjob
- trying to run mr job python script
- Failure to run mrjob on dataproc
- total sort HOT 1
- Read Specific Column From csv file
- Python 3.12 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mrjob.