• No products in the cart.

301.2.6-How Map Reduce Works

 

How MapReduce Works

  • We will understand MapReduce with the help of an example
  • Word count example
  • Imagine a huge data set that contains user comments and discussions about a laptop
  • We want to count the frequency of words to get an idea on the popular features

Map Reduce Word Count Example

The Map Function input and output

  • Input
  • Map function takes a key and value pair as input
  • Key = Text document name
  • Value = the contents of text document
  • Output
  • Map function gives key value pairs as output
  • Key = word
  • Value = 1

Map Reduce Word Count Example

How Map Function Works

The Reduce Function input and output

  • Input
  • Reduce function takes a key and set of value pair as input
  • Key=word
  • Value=all counts list of that word
  • Output
  • Reduce function gives key value pairs as output
  • Key=word
  • Value=sum of counts

How Reduce Function Works

 

22nd March 2018

DV Analytics

DV Data & Analytics is a leading data science,  Cyber Security training and consulting firm, led by industry experts. We are aiming to train and prepare resources to acquire the most in-demand data science job opportunities in India and abroad.

Bangalore Center

DV Data & Analytics Bangalore Private Limited
#52, 2nd Floor:
Malleshpalya Maruthinagar Bengaluru.
Bangalore 560075
India
(+91) 9019 030 033 (+91) 8095 881 188
Email: info@dvanalyticsmds.com

Bhubneshwar Center

DV Data & Analytics Private Limited Bhubaneswar
Plot No A/7 :
Adjacent to Maharaja Cine Complex, Bhoinagar, Acharya Vihar
Bhubaneswar 751022
(+91) 8095 881 188 (+91) 8249 430 414
Email: info@dvanalyticsmds.com

top
© 2020. All Rights Reserved.