adamjshook / mapreducepatterns Goto Github PK
View Code? Open in Web Editor NEWRepository for MapReduce Design Patterns (O'Reilly 2012) example source code
Repository for MapReduce Design Patterns (O'Reilly 2012) example source code
UserIdReputationEnrichmentMapper's map method:
String reputation = userIdToReputation.get(key.toString());
if (reputation != null) {
outkey.set(value.get() + "\t" + reputation);
output.collect(outkey, value);
}
the outputkey is userId\tReputation.
as the book sayed: Reducer code. This reducer implementation sums the values together and outputs this summation with the input key: user ID and reputation.
so the third line should be:
outkey.set(key.toString() + "\t" + reputation);
Please provide link where can i get the data for succesfully running the code
In the code for the MedianStdDevCombiner class given on page 31 of the PDF version and in the source code donwloads, if count != null its value is updated but not used. I think it should be used to update outValue and doing so affects the results. The way I did this is with "outValue.put(entry.getKey(), count);"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.