1 / 26

Virtual Clusters Supporting MapReduce in the Cloud

Virtual Clusters Supporting MapReduce in the Cloud. Jonathan Klinginsmith jklingin@indiana.edu School of Informatics and Computing Indiana University Bloomington. Let’s Break this Title Down. Virtual Clusters Supporting MapReduce in the Cloud. Let’s Start with MapReduce.

tudor
Download Presentation

Virtual Clusters Supporting MapReduce in the Cloud

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Virtual Clusters Supporting MapReduce in the Cloud Jonathan Klinginsmith jklingin@indiana.edu School of Informatics and Computing Indiana University Bloomington

  2. Let’s Break this Title Down Virtual Clusters Supporting MapReduce in the Cloud

  3. Let’s Start with MapReduce • An example to get us warmed up… Map line = “hello world goodbye world” words = line.split() # [“hello”, “world”, “goodbye”, “world”] map_results= map(lambda x: (x, 1), words) # [('hello', 1), ('world', 1), ('goodbye', 1), ('world', 1)]

  4. Can’t have “MapReduce” without the “Reduce” Reduce from operator import itemgetter from itertools import groupby map_results.sort() # [('goodbye', 1), ('hello', 1), ('world', 1), ('world', 1)] forword, group in groupby(map_results, itemgetter(0)): counts = [countfor(word, count) in group] total = reduce(lambda x, y: x + y, counts) print("{0} {1}".format(word, total)) goodbye1 hello 1 world 2

  5. What Did We Just Do? “hello world goodbye world” Split: “hello”, “world”, “goodbye”, “world” Map: ('hello', 1), ('world', 1), ('goodbye', 1), ('world', 1) Sort: ('goodbye', 1), ('hello', 1), ('world', 1), ('world', 1) Reduce: ('goodbye', 1), ('hello', 1), ('world', 2)

  6. The “Value” of Knowingthe “Key” Pieces* Map – creates (key, value)pairs ('hello', 1), ('world', 1), ('goodbye', 1), ('world', 1) Sort by the key: ('goodbye', 1), ('hello', 1), ('world', 1), ('world', 1) Reduce operation peformed on the value: ('goodbye', 1), ('hello', 1), ('world', 2) * = Pun intended

  7. In General then… Split: Map: Sort: Reduce:

  8. Check “MapReduce” off the List Virtual Clusters Supporting MapReduce in the Cloud

  9. What is a Cluster? or

  10. Compute Cluster • Set of computers • Proximity • Networking • Storage • Resource Manager

  11. Compute Cluster

  12. Breaking Down Large Problems Many compute patterns have emerged one such is… Scatter/Gather:

  13. On the Cluster

  14. What if there are a Lot of Data? Network Bottleneck?

  15. What about Local Node Storage? • Distribute the data across the nodes (scatter/split) • Replicate the data to prevent data loss • Have the file system keep track of where the chunks (blocks) are stored • Scheduling resource will schedule jobs to the nodes storing the data

  16. MapReduce on the Cluster Data distributed across the nodes (scatter/split) when loaded into the file system

  17. Check “Clusters” off the List Virtual Clusters Supporting MapReduce in the Cloud

  18. Virtual…and…the Cloud Let’s start with Virtual... • A Virtual Machine (VM) • A “guest” virtualcomputerrunning on a “host” physicalcomputer • A machineimage (MI) is instantiatedinto a running VM • MI = snapshot of operatingsystem (OS) andany software

  19. Virtual…and…the Cloud TheCloud... • Virtualization + Internet  Introduction of theCloud • Scalability • Elasticity • Utilitycomputing – not a capitalexpenditure • Three levels of service • Software (SaaS) – e.g., Salesforce.com, Web-basedemail • Platform (PaaS) – e.g., Google App Engine • Infrastructure (IaaS) – e.g., Amazon EC2

  20. Why is the Cloud Interesting? InIndustry • Scalability – getscale not present in internal data centers • Elasticity – changescale as capacitydemands • Utilitycomputing – nocapitalinvestiment Examplesuse-cases: • High Performance/Throughput Computing • On-linegamedevelopment • Scalable web development

  21. Why is the Cloud Interesting? InAcademia • Reproduciblity– resuseMIsbetweenresearchers • EducationalOpportunities • Virtual environment  Variety of usesandconfigurations • Learnaboutfoundationalsystemcomponents • Collaboratewithinthesameenvironment

  22. Covered “Virtal” and “the Cloud” VirtualClusters Supporting MapReduce in the Cloud Let’s put it alltogether...

  23. MapReduce Virtual Clusters in the Cloud • CreatevirtualclustersrunningMapReduce • Test algorithms • Test infrastructureandothersystemattributes

  24. MapReduce Virtual Clusters in the Cloud • ResearchAreas • Bioinformatics – e.g., GenomicAlignments • Data/TextMiningandProcessing • Large-scaleGraphAlgorithms

  25. MapReduce Virtual Clusters in the Cloud • ResearchAreas • Bioinformatics – e.g., GenomicAlignments • Data/TextMiningandProcessing • Large-scaleGraphAlgorithms

  26. From Virtual Clustersto a Local Sandbox • Use a localsandboxtocoverMapReducetopics

More Related