pagerank and recommenders on very large scale
play

PageRank and recommenders on very large scale A Big Data - PowerPoint PPT Presentation

PageRank and recommenders on very large scale PageRank and recommenders on very large scale A Big Data perspective through Stratosphere Mrton Balassi Data Mining and Search Group 1 1 Computer and Automation Research Institute of the Hungarian


  1. PageRank and recommenders on very large scale PageRank and recommenders on very large scale A Big Data perspective through Stratosphere Márton Balassi Data Mining and Search Group 1 1 Computer and Automation Research Institute of the Hungarian Academy of Sciences May 8, 2014

  2. PageRank and recommenders on very large scale Table of Contents Distributing data-intensive algorithms Stratosphere Input Contracts PageRank and recommender systems Reference

  3. PageRank and recommenders on very large scale Distributing data-intensive algorithms Table of contents Distributing data-intensive algorithms Stratosphere Input Contracts PageRank and recommender systems Reference

  4. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ The soc-LiveJournal1 provided by Stanford LNDC 1 ◮ 4 . 8 · 10 6 nodes ◮ 6 . 9 · 10 7 edges ◮ 250 MB of compressed data ◮ „Conventional” single machine solution seems sufficient 1 Stanford Large Network Dataset Collection

  5. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ The soc-LiveJournal1 provided by Stanford LNDC 1 ◮ 4 . 8 · 10 6 nodes ◮ 6 . 9 · 10 7 edges ◮ 250 MB of compressed data ◮ „Conventional” single machine solution seems sufficient 1 Stanford Large Network Dataset Collection

  6. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ The soc-LiveJournal1 provided by Stanford LNDC 1 ◮ 4 . 8 · 10 6 nodes ◮ 6 . 9 · 10 7 edges ◮ 250 MB of compressed data ◮ „Conventional” single machine solution seems sufficient 1 Stanford Large Network Dataset Collection

  7. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ The soc-LiveJournal1 provided by Stanford LNDC 1 ◮ 4 . 8 · 10 6 nodes ◮ 6 . 9 · 10 7 edges ◮ 250 MB of compressed data ◮ „Conventional” single machine solution seems sufficient 1 Stanford Large Network Dataset Collection

  8. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ The soc-LiveJournal1 provided by Stanford LNDC 1 ◮ 4 . 8 · 10 6 nodes ◮ 6 . 9 · 10 7 edges ◮ 250 MB of compressed data ◮ „Conventional” single machine solution seems sufficient 1 Stanford Large Network Dataset Collection

  9. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ A large Portugese webcrawl 1 ◮ 3 . 1 · 10 9 nodes ◮ 1 . 1 · 10 11 edges ◮ 80 GB of compressed data ◮ Divide and conquer is almost mandatory 1 a large Portuguese crawl of the Portuguese Web Archive obtained from Daniel Gomes

  10. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ A large Portugese webcrawl 1 ◮ 3 . 1 · 10 9 nodes ◮ 1 . 1 · 10 11 edges ◮ 80 GB of compressed data ◮ Divide and conquer is almost mandatory 1 a large Portuguese crawl of the Portuguese Web Archive obtained from Daniel Gomes

  11. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ A large Portugese webcrawl 1 ◮ 3 . 1 · 10 9 nodes ◮ 1 . 1 · 10 11 edges ◮ 80 GB of compressed data ◮ Divide and conquer is almost mandatory 1 a large Portuguese crawl of the Portuguese Web Archive obtained from Daniel Gomes

  12. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ A large Portugese webcrawl 1 ◮ 3 . 1 · 10 9 nodes ◮ 1 . 1 · 10 11 edges ◮ 80 GB of compressed data ◮ Divide and conquer is almost mandatory 1 a large Portuguese crawl of the Portuguese Web Archive obtained from Daniel Gomes

  13. PageRank and recommenders on very large scale Distributing data-intensive algorithms Motivation Motivation Let’s do a PageRank on this graph. . . ◮ A large Portugese webcrawl 1 ◮ 3 . 1 · 10 9 nodes ◮ 1 . 1 · 10 11 edges ◮ 80 GB of compressed data ◮ Divide and conquer is almost mandatory 1 a large Portuguese crawl of the Portuguese Web Archive obtained from Daniel Gomes

  14. PageRank and recommenders on very large scale Distributing data-intensive algorithms MapReduce MapReduce

  15. PageRank and recommenders on very large scale Distributing data-intensive algorithms Pregel Pregel Traits ◮ Bulk Synchronous Parallel ◮ „Think like a vertex” ◮ Graph kept in memory Scheme of the BSP system Wikipedia, public domain

  16. PageRank and recommenders on very large scale Distributing data-intensive algorithms Pregel Pregel Traits ◮ Bulk Synchronous Parallel ◮ „Think like a vertex” ◮ Graph kept in memory Scheme of the BSP system Wikipedia, public domain

  17. PageRank and recommenders on very large scale Distributing data-intensive algorithms Pregel Pregel Traits ◮ Bulk Synchronous Parallel ◮ „Think like a vertex” ◮ Graph kept in memory Scheme of the BSP system Wikipedia, public domain

  18. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Triangle Counter – Sequential algorithm Sequential algorithm Every vertex executes a search of itself bounded in depth of three. Thus every triangle is counted three times.

  19. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Triangle Counter – MapReduce algorithm 0 1 Representation 0 1 2 1 2 2 0 3 3 2

  20. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Triangle Counter – MapReduce algorithm First Map 0 Let’s send our ID to all of our 0 1 neighbours possessing a higher ID than ours. Let’s send our neighbours to ourselves. 1 First Reduce 2 Let’s write out the information received.

  21. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Triangle Counter – MapReduce algorithm Second Map If the ID received is smaller then 0 [] 1 [ 0 ] ours let’s pass it on to our neighbours. Let’s send our neighbours to ourselves. 1 Second Reduce 2 [ 1 ] If the ID received is our neighbour then let’s increment a global counter.

  22. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Triangle Counter – MapReduce algorithm Second Map If the ID received is smaller then ours let’s pass it on to our 0 + + 1 neighbours. Let’s send our neighbours to ourselves. Second Reduce 2 If the ID received is our neighbour then let’s increment a global counter.

  23. PageRank and recommenders on very large scale Distributing data-intensive algorithms Counting the number of triangles in a graph Runtime of the three solutions

  24. PageRank and recommenders on very large scale Stratosphere Input Contracts Table of contents Distributing data-intensive algorithms Stratosphere Input Contracts PageRank and recommender systems Reference

  25. PageRank and recommenders on very large scale Stratosphere Input Contracts Map Map Wordcount Map For lines of input text emit ( word , 1 ) for each word.

  26. PageRank and recommenders on very large scale Stratosphere Input Contracts Map Map public static class TokenizeLine extends MapStub implements Serializable { private static final long serialVersionUID = 1L; // initialize reusable mutable objects private final PactRecord outputRecord = new PactRecord(); private final PactString word = new PactString(); private final PactInteger one = new PactInteger(1); @Override public void map(PactRecord record, Collector<PactRecord> collector) { // get the first field (as type PactString) from the record PactString line = record.getField(0, PactString.class); // normalize the line with AsciiUtils ... // tokenize the line this.tokenizer.setStringToTokenize(line); while (tokenizer.next(this.word)){ // emit a (word, 1) pair this.outputRecord.setField(0, this.word); this.outputRecord.setField(1, this.one); collector.collect(this.outputRecord); } } }

  27. PageRank and recommenders on very large scale Stratosphere Input Contracts Map Map

  28. PageRank and recommenders on very large scale Stratosphere Input Contracts Reduce Reduce Wordcount Reduce For multiple instances of ( word , 1 ) count frequency of each word.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend