h adoop
play

[H ADOOP ] Whats this hullabaloo about an elephant? No, not the one - PDF document

CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University CS 455: I NTRODUCTION T O D ISTRIBUTED S YSTEMS [H ADOOP ] Whats this hullabaloo about an elephant? No, not the one named Horton Who


  1. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University CS 455: I NTRODUCTION T O D ISTRIBUTED S YSTEMS [H ADOOP ] What’s this hullabaloo about an elephant? No, not the one named Horton Who has fun in the Jungle of Nool This one’s named Hadoop, and is just as cool Crunching through data and having fun Shrideep Pallickara Computer Science Colorado State University CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 Frequently asked questions from the previous class survey ¨ Why does a Mapper produce R intermediate outputs? ¨ Difference between intermediate output ad final output. ¨ Possibilities for daisy-chained MapReduce tasks? E.g. M-M-M-M-R or M-R-M-R-M-R ¨ Are there backup tasks for reducers? Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.1 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  2. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Topics covered in this lecture ¨ Hadoop ¤ Application development ¤ API Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 H ADOOP CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.2 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  3. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Hadoop ¨ Java-based open-source implementation of MapReduce ¨ Created by Doug Cutting ¨ Origins of the name Hadoop ¤ Stuffed yellow elephant ¨ Includes HDFS [Hadoop Distributed File System] Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 Hadoop timelines ¨ Feb 2006 ¤ Apache Hadoop project officially started ¤ Adoption of Hadoop by Yahoo! Grid team ¨ Feb 2008 ¤ Yahoo! Announced its search index was generated by a 10,000-core Hadoop cluster ¨ May 2009 ¤ 17 clusters with 24,000 nodes Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.3 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  4. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Hadoop Releases ¨ There are four active releases at the moment ¤ 2.7.x ¤ 2.8.x ¤ 3.1.x ¤ 3.2.x ¨ Last release from the 2.7.x branch (v2.7.7) was on May 31, 2018 ¤ 2.7.x branch is in maintenance mode ¨ All 3.x.x branches had releases in 2019 Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 Hadoop Evolution ¨ 0.20.x series became 1.x series ¨ 0.23.x was forked from 0.20.x to include some major features ¨ 0.23 series later became 2.x series ¨ 2.8.0 is branched off from 2.7.3 ¨ 2.9.0 is branched off from 2.8.2 ¨ 3.0.0 series is branched off from 2.7.0 ¨ 3.1.0 series is branched off from 3.0.0 ¨ 3.2.0 is branched off from 3.1.0 Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.4 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  5. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University 0.23 included several major features ¨ New MapReduce runtime, called MapReduce 2, implemented on a new system called YARN ¤ YARN: Yet Another Resource Negotiator ¤ Replaces the “classic” runtime in previous releases ¨ HDFS federation ¤ HDFS namespace can be dispersed across multiple name nodes ¨ HDFS high-availability ¤ Removes name node as a single point of failure; supports standby nodes for failover Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 3.2.0 includes major features ¨ Hadoop Submarine support ¤ Hadoop Submarine is a new project that orchestrates Tensorflow programs without modifications on Yarn and provide access to data stored on HDFS ¤ Support for GPUs and Docker images ¨ New/Improved storage connectors ¤ ADLS (Azure Datalake Generation 2), Amazon S3, and Amazon DynamoDB ¨ HDFS storage policies ¤ Hierarchical storage – Archival, Disk (default), SSD, and RamDisk ¤ Users can define the type of storage when storing data ¤ Blocks can be moved between different storage types Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.5 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  6. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Latest Release ¨ February 6, 2019 ¤ v3.1.2 released [We will use this for HW3] ¨ September 22, 2019 ¤ v3.2.1 released ¤ This version is considered stable, but production use not widespread yet. ¨ v2.9.2 ,v2.8.5, and v2.7.7 were released in 2018. Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 The Hadoop Ecosystem Workflow Enterprise High Level Abstractions Data Integration Oozie Sqoop Pig Hive Coordination Flume Zookeeper Programming Model NoSQL Storage MapReduce HBase Hadoop Distributed File System (HDFS) Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.6 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  7. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University MapReduce Jobs ¨ A MapReduce Job is a unit of work ¨ Consists of: ¤ Input Data ¤ MapReduce program ¤ Configuration information ¨ Hadoop runs the jobs by dividing it into tasks ¤ Map tasks ¤ Reduce tasks Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT http: ht p://www.cs. cs.co colost state.edu/~cs4 cs455 Types of nodes that control the job execution process [Older Versions] ¨ Job tracker ¤ Coordinates all jobs by scheduling tasks to run on task trackers ¤ Records overall progress of each job n If task fails, reschedule on a different task tracker ¨ Task tracker ¤ Run tasks and reports progress to job tracker Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.7 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  8. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Types of nodes that control the job execution process [Newer Versions] ¨ Resource Manager ¨ Application Manager ¨ Node manager Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 Processing a weather dataset ¨ The dataset is from NOAA ¨ Stored using a line-oriented format ¤ Each line is a record ¨ Lots of elements being recorded ¨ We focus on temperature ¤ Always present with a fixed width Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.8 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

  9. CS455: Introduction to Distributed Systems [Spring 2020] Dept. Of Computer Science , Colorado State University Format of a record in the dataset 0057 332130 # USAF weather station identifier 99999 # WBAN weather station identifier 19500101 # Observation date 300 # Observation time 4 +51317 # latitude (degrees x 1000) +028783 # longitude (degrees x 1000) FM-12 +0171 # elevation (meters) 99999 V020 320 # wind direction (degrees) 1 # quality code … -0128 # air temperature (degrees Celsius x 10) 1 # quality code -0139 # dew point temperature (degree Celsius x 10) Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 Analyzing the dataset ¨ What’s the highest recorded temperature for each year in the dataset? ¨ See how programs are written ¤ Using Unix tools ¤ Using MapReduce Professor: S HRIDEEP P ALLICKARA CS455: Introduction to Distributed Systems C OM TER S CI NCE D EPAR OMPUTE CIENCE EPARTMEN ENT ht http: p://www.cs. cs.co colost state.edu/~cs4 cs455 L13.9 S LIDES C REATED B Y : S HRIDEEP P ALLICKARA

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