PEGASUS: A PETA-SCALE GRAPH MINING SYSTEM

Slides:



Advertisements
Similar presentations
CMU SCS I2.2 Large Scale Information Network Processing INARC 1 Overview Goal: scalable algorithms to find patterns and anomalies on graphs 1. Mining Large.
Advertisements

Overview of this week Debugging tips for ML algorithms
Piccolo: Building fast distributed programs with partitioned tables Russell Power Jinyang Li New York University.
Pete Bohman Adam Kunk.  Introduction  Related Work  System Overview  Indexing Scheme  Ranking  Evaluation  Conclusion.
Seunghwa Kang David A. Bader Large Scale Complex Network Analysis using the Hybrid Combination of a MapReduce Cluster and a Highly Multithreaded System.
Matei Zaharia Large-Scale Matrix Operations Using a Data Flow Engine.
CMU SCS C. Faloutsos (CMU)#1 Large Graph Algorithms Christos Faloutsos CMU McGlohon, Mary Prakash, Aditya Tong, Hanghang Tsourakakis, Babis Akoglu, Leman.
NetMine: Mining Tools for Large Graphs Deepayan Chakrabarti Yiping Zhan Daniel Blandford Christos Faloutsos Guy Blelloch.
Algorithmic and Economic Aspects of Networks Nicole Immorlica.
Sampling from Large Graphs. Motivation Our purpose is to analyze and model social networks –An online social network graph is composed of millions of.
Design Patterns for Efficient Graph Algorithms in MapReduce Jimmy Lin and Michael Schatz University of Maryland Tuesday, June 29, 2010 This work is licensed.
Scaling Personalized Web Search Glen Jeh, Jennfier Widom Stanford University Presented by Li-Tal Mashiach Search Engine Technology course (236620) Technion.
The PageRank Citation Ranking: Bringing Order to the Web Larry Page etc. Stanford University, Technical Report 1998 Presented by: Ratiya Komalarachun.
Presented By: - Chandrika B N
Design Patterns for Efficient Graph Algorithms in MapReduce Jimmy Lin and Michael Schatz University of Maryland MLG, January, 2014 Jaehwan Lee.
Exercise problems for students taking the Programming Parallel Computers course. Janusz Kowalik Piotr Arlukowicz Tadeusz Puzniakowski Informatics Institute.
CMU SCS KDD'09Faloutsos, Miller, Tsourakakis P0-1 Large Graph Mining: Power Tools and a Practitioner’s guide Christos Faloutsos Gary Miller Charalampos.
Ex-MATE: Data-Intensive Computing with Large Reduction Objects and Its Application to Graph Mining Wei Jiang and Gagan Agrawal.
Distributed Computing Rik Sarkar. Distributed Computing Old style: Use a computer for computation.
MapReduce: Hadoop Implementation. Outline MapReduce overview Applications of MapReduce Hadoop overview.
The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd Presented by Anca Leuca, Antonis Makropoulos.
Advanced Analytics on Hadoop Spring 2014 WPI, Mohamed Eltabakh 1.
1 1 COMP5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified based on the slides provided by Lawrence Page, Sergey Brin, Rajeev Motwani.
Kijung Shin Jinhong Jung Lee Sael U Kang
MapReduce and the New Software Stack. Outline  Algorithm Using MapReduce  Matrix-Vector Multiplication  Matrix-Vector Multiplication by MapReduce 
Next Generation of Apache Hadoop MapReduce Owen
The Anatomy of a Large-Scale Hypertextual Web Search Engine S. Brin and L. Page, Computer Networks and ISDN Systems, Vol. 30, No. 1-7, pages , April.
GRAPH AND LINK MINING 1. Graphs - Basics 2 Undirected Graphs Undirected Graph: The edges are undirected pairs – they can be traversed in any direction.
Jimmy Lin and Michael Schatz Design Patterns for Efficient Graph Algorithms in MapReduce Michele Iovino Facoltà di Ingegneria dell’Informazione, Informatica.
Item Based Recommender System SUPERVISED BY: DR. MANISH KUMAR BAJPAI TARUN BHATIA ( ) VAIBHAV JAISWAL( )
Implementation of Classifier Tool in Twister Magesh khanna Vadivelu Shivaraman Janakiraman.
Raju Subba Open Source Project: Apache Spark. Introduction Big Data Analytics Engine and it is open source Spark provides APIs in Scala, Java, Python.
Image taken from: slideshare
Auburn University
Cohesive Subgraph Computation over Large Graphs
Big Data is a Big Deal!.
A Peta-Scale Graph Mining System
Sushant Ahuja, Cassio Cristovao, Sameep Mohta
Hadoop Aakash Kag What Why How 1.
ITCS-3190.
Distributed Programming in “Big Data” Systems Pramod Bhatotia wp
Tutorial: Big Data Algorithms and Applications Under Hadoop
Spark Presentation.
Search Engines and Link Analysis on the Web
15-826: Multimedia Databases and Data Mining
DTMC Applications Ranking Web Pages & Slotted ALOHA
Hadoop Clusters Tess Fulkerson.
Apache Spark Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing Aditya Waghaye October 3, 2016 CS848 – University.
NetMine: Mining Tools for Large Graphs
Kijung Shin1 Mohammad Hammoud1
Ministry of Higher Education
Chapter 15 QUERY EXECUTION.
Applying Twister to Scientific Applications
MapReduce Simplied Data Processing on Large Clusters
Oracle Architecture Overview
Apache Spark & Complex Network
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
CS110: Discussion about Spark
Introduction to Apache
KMeans Clustering on Hadoop Fall 2013 Elke A. Rundensteiner
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Overview of big data tools
Graph and Tensor Mining for fun and profit
Spark and Scala.
VI-SEEM data analysis service
Lecture 16 (Intro to MapReduce and Hadoop)
Recitation #4 Tel Aviv University 2017/2018 Slava Novgorodov
Learning to Rank Typed Graph Walks: Local and Global Approaches
MapReduce: Simplified Data Processing on Large Clusters
Map Reduce, Types, Formats and Features
Presentation transcript:

PEGASUS: A PETA-SCALE GRAPH MINING SYSTEM PRESENTER : ANURADHA KULKARNI

CONTENT Background PEGUSUS PageRank Example Performance and Scalability Real World Applications

Why GRAPHS? T1 D1 ... DN TM Internet Map [lumeta.com] Social Networking Sites Protein Interactions [genomebiology.com] D1 DN T1 TM ... Friendship Network [Moody ’01] IR : BI-PARTITE GRAPHS WEB: HYPER TEXT LINK

BACKGROUND What is Graph Mining ? … is an area of data mining to find patterns, rules, and anomalies of graphs …graph mining tasks such as PageRank, diameter estimation, connected components etc.

BACKGROUND What is the problem? Why is it important? Large volume of available data Limited scalability Rely on a shared memory model - limits their ability to handle large disk-resident graph Graphs or networks are everywhere We must find graph mining algorithms that are faster and can scale up to billions of nodes and edges to tackle real world applications

PEGASUS Based on Hadoop Handling graphs with billions of nodes and edges Unification of seemingly different graph mining tasks Generalized Iterated Matrix-Vector multiplication(GIM-V)

PEGASUS Linear runtime on the numbers of edges Scales up well with the number of available machines Combination of optimizations can speed up 5 times

GIM-V Generalized Iterated Matrix-Vector multiplication Main idea Three operations n by n matrix M, vector v of size n, mi,j denote the (i,j) element of M Combine2: multiply mi,j, and vj CombineAll: sum n multiplication results for node i Assign: overwrite previous value of vi with new result to make vi’

GIM-V Main idea Operator XG, where the three functions can be defined arbitrarily where vi’=assign(vi, combineAlli ({xj|j=1…n, and xj=combine2(mi,j, vj)})) Three functions Strong connection of GIM-V with SQL Combine2(mi,j,vj), CombineAll(x1,…,xn), Assign(vi,vnew)

Eample1. PageRank PageRank: calculate relative importance of web pages Main idea Formula

Eample1. PageRank Three operations Combine2(mi,j,vj) = c x mi,j x vj CombineAll(x1,…,xn) = Assign(vi,vnew) = vnew

GIM-V Base: Naïve Multiplication How can we implement a matrix by vector multiplication in MapReduce? Stage1: performs combine2 operation by combing columns of matrix with rows of vector. Stage2: combines all partial results from stage1 and assigns the new vector to the old vector.

Stage 1 Stage 2 Distribution of work among machines during GIM-V execution

Example 2. Connected Components Main idea- finding connected components in large graph Formula Three operations Combine2(mi,j,vj) = mi,j x vj CombineAll(x1,…,xn) = MIN{Xj | j=1…n} Assign(vi,vnew) = MIN(vi, vnew)

Example 3. RANDOM WALK WITH RESTART Main idea- measure proximity of nodes in graph Three operations Combine2(mi,j,vj) = c x mi,j x vj CombineAll(x1,…,xn) = (1-c)I(i !=k)+ {Xj | j=1…n} Assign(vi,vnew) = vnew

Example 3. DIAMETER ESTIMATION Main idea- estimate diameter and radius of large graphs Three operations Combine2(mi,j,vj) = mi,j x vj CombineAll(x1,…,xn) = BITWISE-OR {Xj | j=1…n} Assign(vi,vnew) = BITWISE-OR(vi,vnew)

Fast Algorithm for GIM-V GIM-V BL: Block Multiplication Main idea: Group elements of the input matrix into blocks of size b by b. Elements of the input vectors are also divided into blocks of length b

Only blocks with at least one non-zero element are saved to disk More than 5 times faster than GIM-V Base since The bottleneck of naïve implementation is the grouping stage which is implemented by sorting. GIM-BL reduced the number of elements sorted. [shuffling stage of HADOOP] E.g. 36 elements are sorted before, 9 elements sorted now Compression – the size of the data decreases significantly by converting edges and vectors to block format, which speeds up as fewer I/O operations are needed

Fast Algorithm for GIM-V GIM-V CL: Clustered Edges Main idea: Clustering is a pre-processing step which can be ran only once on the data file and reused in the future. This can be used to reduce the number of used blocks. Only useful when combined with block encoding.

Fast Algorithm for GIM-V GIM-V DI: Diagonal Block Iteration Main idea: Reduce the number of iterations required to converge. In HCC, (algorithm for finding connected component),the idea is to multiply diagonal matrix blocks and corresponding vector blocks until the contents of the vector don’t change in one iteration.

Performance and Scalability How the performance of the methods changes as we add more machines?

Performance and Scalability GIM-V DI vs. GIM-V BL-CL for HCC

Real World Applications PEGASUS can be useful for finding patterns, outliers, and interesting observations. Connected Components of Real Networks PageRanks of Real Networks Diameter of Real Networks

INSTALLATION:ENVIrONMENT PEGASUS needs the following software's to be installed in the system: Hadoop 0.20.1 or greater Apache Ant 1.7.0 or greater Java 1.6.x or greater, preferably from Sun Python 2.4.x or greater Gnuplot 4.2.x or greater

USE PEGASUS FOR MINING LARGE GRAPHS PEGASUS supports an interactive shell so that users can manage graphs, run algorithms, and generate plots. To access the shell, type pegasus.sh in the PEGASUS installation directory. Then, the PEGASUS shell will appear. For available commands in the shell, type help.

USE PEGASUS FOR MINING LARGE GRAPHS

MANAGING GRAPHS The graphs to be analyzed should be uploaded to the Hadoop File System (HDFS). In the shell, the add command is used for uploading a graph to HDFS. To add a local edge file 'www_edges.tab' to HDFS and name it to 'www', issue the following command: add www_edges.tab www View the list of the current graphs by the list command.

RUNNING ALGORITHMS: PAGE RANK Command: compute pagerank [graph_name] Additional parameters: the number of nodes in the graph the number of reducers whether to symmetrize the graph. (sym or nosym)

RUNNING ALGORITHMS: PAGE RANK

PLOTTING RESULT: PAGERANk The PageRank distribution is plotted by the plot pagerank [graph_name]  The output file yweb_pagerank.eps is generated in the current directory. Here is the PageRank distribution plotted.

RUNNING ALGORITHMS: DEGREE Command: compute deg [graph_name] Additional parameters: the type of the degree (inout,in,out) the number of reducers

RUNNING ALGORITHMS: DEGREE

PLOTTING RESULT: DEGREE The Degree distribution is plotted by the plot deg [graph_name]  The output file www_deg_inout.eps is generated in the current directory. Here is the Degree distribution plotted.

RUNNING ALGORITHMS: RADIUS Command: compute radius [graph_name] Additional parameters: the number of nodes in the graph the number of reducers whether to symmetrize the graph

RUNNING ALGORITHMS: RADIUS

RUNNING ALGORITHMS: RADIUS

PLOTTING RESULT: RADIUS The Degree distribution is plotted by the plot radius [graph_name]  The output file yweb_radius.eps is generated in the current directory. Here is the Radius distribution plotted.

Reference [1] U Kang, Charalampos E. Tsourakakis, and Christos Faloutsos, PEGASUS: A Peta Mining System - Implementation and Observations. Proc. Intl. Conf. Data Mining, 2009, 229-238 [2] U Kang. "Mining Tera-Scale Graphs: Theory, Engineering and Discoveries." Diss. Carnegie Mellon U, 2012. Print. [3]Kenneth Shum. “Notes on PageRank Algorithm.” Http://home.ie.cuhk.edu.hk/~wkshum/papers/pagerank.pdf .N.p., n.d.Web.20 Sept.2016.

Thank you!!!