Map Reduce seems very interesting, but every example I have seen explains it in terms of counting frequency of words in documents. I would love to have someone explain it with an actual business example. I can't think of many real world uses where counting the frequency of words would matter to most businesses. (besides maybe some analysis of log files)
Map Reduce: A simple introduction (2010)
11–20 of 37 posts
Re: Map Reduce: A simple introduction (2010)
#12Re: Map Reduce: A simple introduction (2010)
#13This is a good explanation and I would love to share it but the poor spelling and grammar makes it un-shareable.
While I can agree that pointing out the spelling and/or grammar mistakes could be constructive, calling the article "un-shareable" because of them seems terribly over-the-top.
Re: Map Reduce: A simple introduction (2010)
#14Map Reduce seems very interesting, but every example I have seen explains it in terms of counting frequency of words in documents. I would love to have someone explain it with an actual business example. I can't think of many real world uses where counting the frequency of words would matter to most businesses. (besides maybe some analysis of log files)
In your log files you have the IP which you can use to geolocate those users.
These counts can be caluclated in parallel.
We do this by first "mapping" each line in a log file extracting out the IP. The output of map will be a geolocated hash by region.
Reduce's goal is to calculate an answer based on these keys.
If we think about the output of map being the geo location, we can then collect a count by geo located hash of where our users are coming from.
Map: Map the raw input to some key value space
Reduce: Reduce the output of the map to some aggregate result, think of this like the sql aggregation functions
Hope that helps!
Re: Map Reduce: A simple introduction (2010)
#15Map Reduce seems very interesting, but every example I have seen explains it in terms of counting frequency of words in documents. I would love to have someone explain it with an actual business example. I can't think of many real world uses where counting the frequency of words would matter to most businesses. (besides maybe some analysis of log files)
With the books spread over a distributed, in-memory data grid of 20 or so nodes, the system sent a command object to each node to do the calculations in parallel in the same process context as the position data. The data was partitioned so that all positions for each book were in the same node. When the calculations were complete, the reduce process consolidated the results.
VaR requires storing interim results to roll the calculation up the hierarchy of books, but that was straightforward with this approach.
Any time you can parallelize the calculations, map-reduce is worth considering.
Incidentally, the core idea (like all good software ideas) was present in Lisp decades before Google popularized it. The words map and reduce are even in the language.
Re: Map Reduce: A simple introduction (2010)
#16Map Reduce seems very interesting, but every example I have seen explains it in terms of counting frequency of words in documents. I would love to have someone explain it with an actual business example. I can't think of many real world uses where counting the frequency of words would matter to most businesses. (besides maybe some analysis of log files)
Your map function scans the rows and outputs the kv pair (zipcode+","+income, csv line). All the csv lines in a group go to the same instance of the reduce function, where you can run any code you like (compute averages, do deep learning, etc). The output is the results of what you want to compute for each group.
This is a pretty simple example, but does demonstrate where the power of mr comes from -- arbitrary functions in the map and reduce functions that are allowed restricted one-way communication from the mapper to the reducer. It also should help you understand the glib "you can implement SQL on mapreduce" comment below, which is what Apache Hive does.
Re: Map Reduce: A simple introduction (2010)
#17This is a good explanation and I would love to share it but the poor spelling and grammar makes it un-shareable.
Perfectionist much? While I can agree that pointing out the spelling and/or grammar mistakes could be constructive, calling the article "un-shareable" because of them seems terribly over-the-top.
Re: Map Reduce: A simple introduction (2010)
#18This is a good explanation and I would love to share it but the poor spelling and grammar makes it un-shareable.
I try not to judge an article/blog post on the quality of the grammar when the ideas they are trying to convey are solid and useful.
There are some exceptionally fantastic minds out there that are able to succinctly explain, sometimes difficult, subjects.
I appreciate them for at least trying, and if they explained it in a language that is not their first language, all the more respect to them.
Re: Map Reduce: A simple introduction (2010)
#19Map Reduce seems very interesting, but every example I have seen explains it in terms of counting frequency of words in documents. I would love to have someone explain it with an actual business example. I can't think of many real world uses where counting the frequency of words would matter to most businesses. (besides maybe some analysis of log files)
In this analogy, the pregnant woman is the node and the baby is the processed data (of course).
MapReduce is all about dividing tasks as small as they can be and then executing those tasks in parallel in several nodes. Most examples are of counting words because it's very straight forward to explain that you can give one page of a book to N people, have them count the words, and afterwards merge sort the sums into M counters and just sum it again.
Re: Map Reduce: A simple introduction (2010)
#20Earlier quoted context omitted.
Perfectionist much? While I can agree that pointing out the spelling and/or grammar mistakes could be constructive, calling the article "un-shareable" because of them seems terribly over-the-top.
Unless you're already familiar with the material, spelling and grammar lends credibility to the content of the article. Similar to a code smell, it makes you ask "are you sure you know what you're doing?"
I can appreciate numerous spelling/grammar errors making you analyze an article with a bit more scrutiny. However, I can't think of a single example of an article with those kind of errors where I couldn't figure out from the content whether I thought the author really knew what they were talking about.
At any rate, I think there is a big difference between an article needing a little bit more scrutiny, and the article being "unsharable".