cs535 big data 1 27 2020 week 2 a sangmi lee pallickara
play

CS535 Big Data 1/27/2020 Week 2-A Sangmi Lee Pallickara CS535 Big - PDF document

CS535 Big Data 1/27/2020 Week 2-A Sangmi Lee Pallickara CS535 Big Data | Computer Science | Colorado State University CS535 BIG DATA FAQs Slides are available on the course web Canvas Discussion Board is available: Find Find your your


  1. CS535 Big Data 1/27/2020 Week 2-A Sangmi Lee Pallickara CS535 Big Data | Computer Science | Colorado State University CS535 BIG DATA FAQs • Slides are available on the course web • Canvas Discussion Board is available: Find Find your your teammates! teammates! PART A. BIG DATA TECHNOLOGY 2. DATA PROCESSING PARADIGMS • PA1 FOR BIG DATA • Hadoop and Spark installation guides are posted • Questions/need helps? Send an email to cs535@cs.colostate.edu or post your question on Piazza! Sangmi Lee Pallickara Computer Science, Colorado State University http://www.cs.colostate.edu/~cs535 CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University Overview of Part A • Duration: Week 1 ~ Week 4 1. Introduction to Big Data (W1) 2. Data Process Paradigms for Big Data (W2) 2. Data Processing Paradigms For Big data 3. Distributed Computing Models for Scalable Batch Computing Lambda Architecture Part 1. MapReduce (W2) Part 2. In-Memory Cluster Computing Model: Apache Spark (W3, W4) 4. Real-time Streaming Computing Models (W4) Apache Storm and Twitter Heron CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University This material is built based on Why do we need Big Data Technologies? • To perform large-scale analytics over voluminous data, we need a high- • Nathan Marz and James Warren, “Big Data, Principles and Best Practices of Scalable Real-Time Data System”, 2015, Manning Publications, ISBN 9781617290343 level architecture that provides, • Robustness • Fault-tolerant: Both against hardware failures and human mistakes • Support for a wide range of workloads and use cases • Low-latency reads and updates • Batch analytics jobs • Scalability • Scale-out capabilities with minimal maintenance http://www.cs.colostate.edu/~cs535 Spring 2020 Colorado State University, Page 1

  2. CS535 Big Data 1/27/2020 Week 2-A Sangmi Lee Pallickara CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University Typical problems for scaling traditional databases Direct access • Suppose that the application should track the number of page views for any URL a • Direct access from Web server to the backend DB cannot handle the large amount customer wishes to track of frequent write requests Web • The customer’s web page pings the application’s web server with its URL every time a page view is • Timeout errors DB server received • Application tells you top 100 URLs by number of page views Customer-ID url (varchar(255)) Pageviews(bigint) Customer-ID url (varchar(255)) Pageviews(bigint) (varchar(255)) (varchar(255)) Coloradoan https://www.coloradoan.com/life 13,483,401 Coloradoan https://www.coloradoan.com/life 13,483,401 Coloradoan httpss://www.coloradoan.com/story/life/2020/01/2 382 Coloradoan httpss://www.coloradoan.com/story/life/2020/01/2 382 3/hoffman-roast-chicken 3/hoffman-roast-chicken Coloradoan https://www.coloradoan.com/story/sports/csu/foot 2547 Coloradoan https://www.coloradoan.com/story/sports/csu/foot 2547 ball/2020/01/27/temple-football-quarterback- ball/2020/01/27/temple-football-quarterback- todd-centeio-coming-colorado-state-graduate- todd-centeio-coming-colorado-state-graduate- transfer transfer CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University Scaling with a queue Scaling by sharding the database • Batch many increments in a single request • Horizontal partitioning or sharding of database Web DB • Uses multiple database servers and spreads the table across all the servers server • Chooses the shard for each key by taking the hash of the key modded by the number of shards • What if your data amount increases even more ? Pageview • Your worker cannot keep up with the writes • What if your current number of shards cannot handle your data? Queue Worker • What if you add more workers? 100 at a time • Your mapping script should cope with new set of shards • Again, the Database will be overloaded • Application and data should be re-organized CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University Other issues How will Big Data techniques help? Reactive Solution • Fault-tolerance issues • The databases and computation systems used in Big Data applications are aware of their distributed nature • What if one of the database machines is down? • A portion of the data is unavailable • Sharding and replications will be considered as a fundamental component in the design of Big Data systems • E.g. Data is dealt as immutable • Corruption issues • What if your worker code accidentally generated a bug and stored the wrong number for some of the • Users will mutate data continuously, however data portions • The raw pageview information is not modified • Applications will be designed in different ways http://www.cs.colostate.edu/~cs535 Spring 2020 Colorado State University, Page 2

  3. CS535 Big Data 1/27/2020 Week 2-A Sangmi Lee Pallickara CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University Lambda Architecture 1. Batch layer • Batch layer • Big Data data processing architecture as a series of layers • Precomputes results using distributed processing system Batch layer 1. • The component that performs the batch view processing Speed layer Serving layer • batch view= function(e.g. Sum of values) 2. • batch view= function(e.g. Training a Predictive Model) Serving layer Speed layer 3. • After the computation à Stores an immutable, constantly growing master dataset Batch layer • E.g. values, model, or distribution • Computes arbitrary functions on that dataset • Batch-processing systems • e.g. Hadoop, Spark, TensorFlow CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University PageRank values of the Generating batch views Generating batch views: E.g. PageRank web on 01/25/2020 Batch layer is often a high-latency operation Generate the PageRank Batch view values every 24 hours Batch view Data Data Batch layer Batch view Batch layer Batch view Crawling the Web every day Batch view Batch view PageRank values of the PageRank values of the web on 01/27/2020 web on 01/26/2020 CS535 Big Data | Computer Science | Colorado State University CS535 Big Data | Computer Science | Colorado State University 2. Serving layer 3. Speed layer • The batch layer emits batch view as the result of its functions • Q: Is there any data not represented in the batch view? • These views should be loaded somewhere and queried • Data arrives while the precomputation is running • Specialized distributed database that loads in a batch view and makes it possible to do • With fully real-time data system random reads on it • Batch update and random reads should be supported • Speed layer looks only at recent data • e.g. BigQuery, ElephantDB, Dynamo, MongoDB, Cassandra • Whereas the batch layer looks at all the data (except real-time data) at once • Real-time view= function( real-time view , real-time computing, new data) http://www.cs.colostate.edu/~cs535 Spring 2020 Colorado State University, Page 3

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