Web Information Retrieval. Lecture 3 Index Construction

Similar documents
EECS 395/495 Lecture 3 Scalable Indexing, Searching, and Crawling

Big Data Technology Map-Reduce Motivation: Indexing in Search Engines

External Sorting. Why Sort? 2-Way Sort: Requires 3 Buffers. Chapter 13

Cloud Computing at Google. Architecture

Big Data Storage, Management and challenges. Ahmed Ali-Eldin

Google File System. Web and scalability

Hadoop. Scalable Distributed Computing. Claire Jaja, Julian Chan October 8, 2013

Distributed File System. MCSN N. Tonellotto Complements of Distributed Enabling Platforms

Similarity Search in a Very Large Scale Using Hadoop and HBase

Introduction to Parallel Programming and MapReduce

From GWS to MapReduce: Google s Cloud Technology in the Early Days

Hadoop and Map-Reduce. Swati Gore

Challenges in Optimizing Job Scheduling on Mesos. Alex Gaudio

External Sorting. Chapter 13. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1

Distributed Computing and Big Data: Hadoop and MapReduce

1 Boolean retrieval. Online edition (c)2009 Cambridge UP

Lecture 5: GFS & HDFS! Claudia Hauff (Web Information Systems)! ti2736b-ewi@tudelft.nl

Pattern Insight Clone Detection

Big Data Processing with Google s MapReduce. Alexandru Costan

Hadoop Distributed File System. Dhruba Borthakur Apache Hadoop Project Management Committee

The Google File System

Mobile Storage and Search Engine of Information Oriented to Food Cloud

Chapter 7. Using Hadoop Cluster and MapReduce

CS 378 Big Data Programming. Lecture 2 Map- Reduce

Apache HBase. Crazy dances on the elephant back

Jeffrey D. Ullman slides. MapReduce for data intensive computing

Hadoop Architecture. Part 1

Big Data and Scripting map/reduce in Hadoop

GraySort on Apache Spark by Databricks

Architectures for Big Data Analytics A database perspective

CS 378 Big Data Programming

Ngram Search Engine with Patterns Combining Token, POS, Chunk and NE Information

16.1 MAPREDUCE. For personal use only, not for distribution. 333

Buffer Management 5. Buffer Management

Quantcast Petabyte Storage at Half Price with QFS!

HBase Schema Design. NoSQL Ma4ers, Cologne, April Lars George Director EMEA Services

DATA MINING WITH HADOOP AND HIVE Introduction to Architecture

Large-Scale Web Applications

International Journal of Advance Research in Computer Science and Management Studies

How MapReduce Works 資碩一 戴睿宸

MapReduce and Hadoop Distributed File System

Hadoop Cluster Applications

Guideline for stresstest Page 1 of 6. Stress test

Introduction to Hadoop

Welcome to the unit of Hadoop Fundamentals on Hadoop architecture. I will begin with a terminology review and then cover the major components

MS SQL Performance (Tuning) Best Practices:

Reference Architecture and Best Practices for Virtualizing Hadoop Workloads Justin Murray VMware

Large-Scale Test Mining

Reduction of Data at Namenode in HDFS using harballing Technique

MapReduce. MapReduce and SQL Injections. CS 3200 Final Lecture. Introduction. MapReduce. Programming Model. Example

Outline. Principles of Database Management Systems. Memory Hierarchy: Capacities and access times. CPU vs. Disk Speed

How In-Memory Data Grids Can Analyze Fast-Changing Data in Real Time

Distributed File Systems

MSU Tier 3 Usage and Troubleshooting. James Koll

Cloud Computing using MapReduce, Hadoop, Spark

Hadoop Distributed File System. Dhruba Borthakur Apache Hadoop Project Management Committee June 3 rd, 2008

Parallel Databases. Parallel Architectures. Parallelism Terminology 1/4/2015. Increase performance by performing operations in parallel

BENCHMARKING CLOUD DATABASES CASE STUDY on HBASE, HADOOP and CASSANDRA USING YCSB

Search Engine Architecture


A Talari Networks White Paper. Turbo Charging WAN Optimization with WAN Virtualization. A Talari White Paper

CSE 326: Data Structures B-Trees and B+ Trees

Scalable Data Analysis in R. Lee E. Edlefsen Chief Scientist UserR! 2011

Hadoop: A Framework for Data- Intensive Distributed Computing. CS561-Spring 2012 WPI, Mohamed Y. Eltabakh

Programming Tricks For Reducing Storage And Work Space Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA.

BASICS OF SCALING: LOAD BALANCERS

Übung Datenbanksysteme II Web-Scale Data Management. Thorsten Papenbrock

Wide-area Network Acceleration for the Developing World. Sunghwan Ihm (Princeton) KyoungSoo Park (KAIST) Vivek S. Pai (Princeton)

Introduction to Hadoop

Big Data Analytics with MapReduce VL Implementierung von Datenbanksystemen 05-Feb-13

Table of Contents. June 2010

PERFORMANCE MODELS FOR APACHE ACCUMULO:

VDI, THE NEXT GENERATION OR THE FINAL FRONTIER?

CS 91: Cloud Systems & Datacenter Networks

The Big Data Paradigm Shift. Insight Through Automation

Analysing Large Web Log Files in a Hadoop Distributed Cluster Environment

Large-Scale Data Sets Clustering Based on MapReduce and Hadoop

SEAIP 2009 Presentation

Big Data. White Paper. Big Data Executive Overview WP-BD Jafar Shunnar & Dan Raver. Page 1 Last Updated

SDFS Overview. By Sam Silverberg

Enterprise Applications

Understanding Object Storage and How to Use It

Big Data and Analytics: A Conceptual Overview. Mike Park Erik Hoel

Sorting revisited. Build the binary search tree: O(n^2) Traverse the binary tree: O(n) Total: O(n^2) + O(n) = O(n^2)

Volume 3, Issue 6, June 2015 International Journal of Advance Research in Computer Science and Management Studies

Apache Hadoop. Alexandru Costan

EMF Compare. EMF Compare. Summary : Table des mises à jour Version Date Auteur(s) Mises à jour v1.0 06/10/11 Laurent Goubet Initial Version

Optimization and analysis of large scale data sorting algorithm based on Hadoop

Big Data: Big N. V.C Note. December 2, 2014

Big Data With Hadoop

HADOOP PERFORMANCE TUNING

Demonstration of Windows XP Privilege Escalation Exploit

RevoScaleR Speed and Scalability

Topics in basic DBMS course

MapReduce, Hadoop and Amazon AWS

Scalable Internet Services and Load Balancing

Journal of Environmental Science, Computer Science and Engineering & Technology

Mark Bennett. Search and the Virtual Machine

Performance And Scalability In Oracle9i And SQL Server 2000

CSE-E5430 Scalable Cloud Computing Lecture 11

Transcription:

Web Information Retrieval Lecture 3 Index Construction

Plan This time: Index construction

Index construction How do we construct an index? What strategies can we use with limited main memory?

RCV1: Our collection for this Sec. 4.2 lecture Shakespeare s collected works definitely aren t large enough for demonstrating many of the points in this course. The collection we ll use isn t really large enough either, but it s publicly available and is at least a more plausible example. As an example for applying scalable index construction algorithms, we will use the Reuters RCV1 collection. This is one year of Reuters newswire (part of 1995 and 1996)

A Reuters RCV1 document Sec. 4.2

Sec. 4.2 Reuters RCV1 statistics symbol statistic value N documents 800,000 L avg. # tokens per doc 200 M terms (= word types) 400,000 avg. # bytes per token 6 (incl. spaces/punct.) avg. # bytes per token 4.5 (without spaces/punct.) avg. # bytes per term 7.5 T non-positional postings 100,000,000 4.5 bytes per word token vs. 7.5 bytes per word type: why?

Sec. 4.2 Recall IIR 1 index construction Term Doc # I 1 did 1 enact 1 julius 1 caesar 1 Documents are parsed to extract words and these are saved with the Document ID. Doc 1 I did enact Julius Caesar I was killed i' the Capitol; Brutus killed me. Doc 2 So let it be with Caesar. The noble Brutus hath told you Caesar was ambitious I 1 was 1 killed 1 i' 1 the 1 capitol 1 brutus 1 killed 1 me 1 so 2 let 2 it 2 be 2 with 2 caesar 2 the 2 noble 2 brutus 2 hath 2 told 2 you 2 caesar 2 was 2 ambitious 2

Sec. 4.2 Key step After all documents have been parsed, the inverted file is sorted by terms. We focus on this sort step. We have 100M items to sort. Term Doc # I 1 did 1 enact 1 julius 1 caesar 1 I 1 was 1 killed 1 i' 1 the 1 capitol 1 brutus 1 killed 1 me 1 so 2 let 2 it 2 be 2 with 2 caesar 2 the 2 noble 2 brutus 2 hath 2 told 2 you 2 caesar 2 was 2 ambitious 2 Term Doc # ambitious 2 be 2 brutus 1 brutus 2 capitol 1 caesar 1 caesar 2 caesar 2 did 1 enact 1 hath 1 I 1 I 1 i' 1 it 2 julius 1 killed 1 killed 1 let 2 me 1 noble 2 so 2 the 1 the 2 told 2 you 2 was 1 was 2 with 2

Index construction As we build up the index, cannot exploit compression tricks Parse docs one at a time. Final postings for any term incomplete until the end. (actually you can exploit compression, but this becomes a lot more complex) At 10-12 bytes per postings entry, demands several temporary gigabytes T = 100,000,000 in the case of RCV1 So we can do this in memory in 2011, but typical collections are much larger. E.g., the New York Times provides an index of >150 years of newswire

System parameters for design Disk seek ~ 10 milliseconds Block transfer from disk ~ 1 microsecond per byte (following a seek) All other ops ~ 10 microseconds E.g., compare two postings entries and decide their merge order

Bottleneck Parse and build postings entries one doc at a time Now sort postings entries by term (then by doc within each term) Doing this with random disk seeks would be too slow must sort T=100M records If every comparison took 2 disk seeks, and T items could be sorted with T log 2 T comparisons, how long would this take?

Sorting with fewer disk seeks 12-byte (4+4+4) records (term, doc, freq). These are generated as we parse docs. Must now sort 100M such 12-byte records by term. Define a Block ~ 10M such records can easily fit a couple into memory. Will have 10 such blocks to start with. Will sort within blocks first, then merge the blocks into one long sorted order.

Sorting 10 blocks of 10M records First, read each block and sort within: Quicksort takes 2n ln n expected steps In our case 2 x (10M ln 10M) steps Exercise: estimate total time to read each block from disk and quicksort it. 10 times this estimate - gives us 10 sorted runs of 10M records each. Need 2 copies of data on disk, throughout.

Sec. 4.2

Merging 10 sorted runs Merge tree of log 2 10= 4 layers. During each layer, read into memory runs in blocks of 10M, merge, write back. 1 2 3 4 1 2 3 Merged run. Runs being merged. Disk 4

Merge tree Sorted runs. 1 2 9 10

Sec. 4.2 How to merge the sorted runs? But it is more efficient to do a multi-way merge, where you are reading from all blocks simultaneously Providing you read decent-sized chunks of each block into memory and then write out a decent-sized output chunk, then you re not killed by disk seeks

Sec. 4.4 Distributed indexing For web-scale indexing (don t try this at home!): must use a distributed computing cluster Individual machines are fault-prone Can unpredictably slow down or fail How do we exploit such a pool of machines?

Sec. 4.4 Web search engine data centers Web search data centers (Google, Bing, Baidu) mainly contain commodity machines. Data centers are distributed around the world. Estimate: Google ~1 million servers, 3 million processors/cores (Gartner 2007)

Sec. 4.4 Web search engine data centers Web search data centers (Google, Bing, Baidu) mainly contain commodity machines. Data centers are distributed around the world. Estimate: Google ~1 million servers, 3 million processors/cores (Gartner 2007) Use of MapReduce An architecture for distributed computing We will cover it in the labs

Resources IIR Chapters 4.1, 4.2