Docsity

Distributed Processing with Hadoop and MapReduce for Big Data Analytics, Slides of Computer Science

Partial preview of the text

Download Distributed Processing with Hadoop and MapReduce for Big Data Analytics and more Slides Computer Science in PDF only on Docsity!

Big Data Analytics

Hadoop and MapReduce

Introduction

Jesse Eickholt, PhD

“In pioneer days they used oxen

for heavy pulling, and when one

ox couldn’t budge a log, they

didn’t try to grow a larger ox. We

shouldn’t be trying for bigger

computers, but for more systems

of computers.”

  • Grace Hopper

Outline

 The need for a new distributed

processing paradigm (a historical

perspective)…

 MapReduce as a solution

 Example tasks

 Example code written for Hadoop

 Hadoop as supporting system

 Extending/easing access to MapReduce

Search v

How would you

implemented a

search engine?

Think Brute Force

Search v

How would you

implemented a

search engine?

Think …

Search v

IDEA: Go with the links! Take into account

the incoming links to a page that use the

keywords.

Problem: …

Still able to outwit!

Applications

Ranking webpages – How to weight the

importance of a page?

Think of a voting scheme

Start with an initial weight, then iterate several time to update weights.

PageRank

IDEA: Consider the web a large graph with

• out-going links representing out-going

edges

• each page as a vertex in the graph.

To determine the importance of a page,

determine the number of incoming links

and weight of each page.

The Web as a Graph

The webpages are nodes and the links

form directed edges…

MapReduce

MapReduce is an algorithmic paradigm

which breaks an implementation into

two stages…

i)Map – Takes an input and produces a

key, value pair

ii)Reduce – Processes values over a

particular key

NOT So Simple Word Frequency Count CPS340, 5 Great, 25 The, 320 Wonderful, 35 Study, 2 Assume a file size of around 250TB.

Frequency Counter v

IDEA: Distribute the job over several

machines to calculate some

intermediate values that can be

collated across machines …

MapReduce

What does this sound like?

Map and Reduce

Map – produce a key and value

Reduce – sort by key and collect values

Parallel processing!