SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Hadoop: Distributed Data Processing
OutlineScaling for Large Data ProcessingWhat is Hadoop?HDFS and MapReduceHadoop EcosystemHadoop vsRDBMSesConclusion
Current Storage Systems Can’t ComputeAd hoc Queries &Data MiningInteractive AppsRDBMS (200GB/day)ETL GridNon-ConsumptionFiler heads are a bottleneckStorage Farm for Unstructured Data (20TB/day)Mostly AppendCollectionInstrumentation
The Solution: A Store-Compute GridInteractive Apps“Batch” AppsRDBMSAd hoc Queries& Data MiningETL and AggregationsStorage + ComputationMostly AppendCollectionInstrumentation
What is Hadoop?A scalable fault-tolerant grid operating system  for data storage and processingIts scalability comes from the marriage of:HDFS: Self-Healing High-Bandwidth Clustered StorageMapReduce: Fault-Tolerant Distributed ProcessingOperates on unstructured and structured dataA large and active ecosystem (many developers and additions like HBase, Hive, Pig, …)Open source under the friendly Apache Licensehttp://wiki.apache.org/hadoop/
Hadoop History2002-2004: Doug Cutting and Mike Cafarella started working on Nutch2003-2004: Google publishes GFS and MapReduce papers 2004: Cutting adds DFS & MapReduce support to Nutch2006: Yahoo! hires Cutting, Hadoop spins out of Nutch2007: NY Times converts 4TB of archives over 100 EC2s2008: Web-scale deployments at Y!, Facebook, Last.fmApril 2008: Yahoo does fastest sort of a TB, 3.5mins over 910 nodesMay 2009:Yahoo does fastest sort of a TB, 62secs over 1460 nodesYahoo sorts a PB in 16.25hours over 3658 nodesJune 2009, Oct 2009: Hadoop Summit (750), Hadoop World (500)September 2009: Doug Cutting joins Cloudera
Hadoop Design AxiomsSystem Shall Manage and Heal ItselfPerformance Shall Scale Linearly Compute Should Move to DataSimple Core, Modular and Extensible
HDFS: Hadoop Distributed File SystemBlock Size = 64MBReplication Factor = 3Cost/GB is a few ¢/month vs $/month
MapReduce: Distributed Processing
MapReduce Example for Word CountSELECT word, COUNT(1) FROM docs GROUP BY word;cat *.txt | mapper.pl | sort | reducer.pl > out.txt(docid, text)(words, counts)Map 1(sorted words, counts)Reduce 1Output File 1(sorted words, sum of counts)Split 1Be, 5“To Be Or Not To Be?”Be, 30Be, 12Reduce iOutput File i(sorted words, sum of counts)(docid, text)Map iSplit iBe, 7Be, 6ShuffleReduce ROutput File R(sorted words, sum of counts)(docid, text)Map M(sorted words, counts)(words, counts)Split N
Hadoop High-Level ArchitectureHadoop ClientContacts Name Node for data or Job Tracker to submit jobsName NodeMaintains mapping of file blocks to data node slavesJob TrackerSchedules jobs across task tracker slavesData NodeStores and serves blocks of dataTask TrackerRuns tasks (work units) within a jobShare Physical Node
Apache Hadoop EcosystemBI ReportingETL ToolsRDBMSHive (SQL)SqoopPig (Data Flow)MapReduce (Job Scheduling/Execution System)(Streaming/Pipes APIs)HBase(key-value store)Avro (Serialization)Zookeepr (Coordination)HDFS(Hadoop Distributed File System)
Relational Databases:Hadoop:Use The Right Tool For The Right Job When to use?Affordable Storage/Compute
Structured or Not (Agility)
Resilient Auto ScalabilityWhen to use?Interactive Reporting (
Multistep Transactions
InteroperabilityEconomics of HadoopTypical Hardware:Two Quad Core Nehalems24GB RAM12 * 1TB SATA disks (JBOD mode, no need for RAID)1 Gigabit Ethernet cardCost/node: $5K/nodeEffective HDFS Space:¼ reserved for temp shuffle space, which leaves 9TB/node3 way replication leads to 3TB effective HDFS space/nodeBut assuming 7x compression that becomes ~ 20TB/nodeEffective Cost per user TB: $250/TBOther solutions cost in the range of $5K to $100K per user TB
Sample Talks from Hadoop World ‘09VISA: Large Scale Transaction AnalysisJP Morgan Chase: Data Processing for Financial ServicesChina Mobile: Data Mining Platform for Telecom IndustryRackspace: Cross Data Center Log ProcessingBooz Allen Hamilton: Protein Alignment using HadoopeHarmony: Matchmaking in the Hadoop CloudGeneral Sentiment: Understanding Natural LanguageYahoo!: Social Graph AnalysisVisible Technologies: Real-Time Business IntelligenceFacebook: Rethinking the Data Warehouse with Hadoop and HiveSlides and Videos at http://www.cloudera.com/hadoop-world-nyc
Cloudera Desktop

More Related Content

PPTX
Single User v/s Multi User Databases
PDF
An overview of Neo4j Internals
PPTX
Introduction to Relational Databases
PDF
Hadoop ecosystem
PPT
Graph database
PDF
Scaling Out With Hadoop And HBase
PPT
Introduction To Map Reduce
PPT
Yii framework
Single User v/s Multi User Databases
An overview of Neo4j Internals
Introduction to Relational Databases
Hadoop ecosystem
Graph database
Scaling Out With Hadoop And HBase
Introduction To Map Reduce
Yii framework

What's hot (20)

PPTX
Data models in NoSQL
PDF
Apache Hbase Architecture
PPT
Database backup & recovery
PDF
Neo4j Data Science Presentation
PPTX
Introduction to Hadoop
PPTX
Mongodb basics and architecture
PPTX
Graphics processing unit (GPU)
PPT
Object Oriented Database Management System
PPT
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
PPTX
Data base management system
PPTX
Multimedia Database
PDF
Data Modeling with Neo4j
PPTX
Apache HBase™
PPT
Php Presentation
PPTX
Big Data Analytics with Hadoop
PPTX
Mining Data Streams
PPTX
What Is Apache Spark? | Introduction To Apache Spark | Apache Spark Tutorial ...
DOCX
Tools for data warehousing
PDF
RESTful Machine Learning with Flask and TensorFlow Serving - Carlo Mazzaferro
PPT
Traditional vs modern dbms
Data models in NoSQL
Apache Hbase Architecture
Database backup & recovery
Neo4j Data Science Presentation
Introduction to Hadoop
Mongodb basics and architecture
Graphics processing unit (GPU)
Object Oriented Database Management System
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data base management system
Multimedia Database
Data Modeling with Neo4j
Apache HBase™
Php Presentation
Big Data Analytics with Hadoop
Mining Data Streams
What Is Apache Spark? | Introduction To Apache Spark | Apache Spark Tutorial ...
Tools for data warehousing
RESTful Machine Learning with Flask and TensorFlow Serving - Carlo Mazzaferro
Traditional vs modern dbms
Ad

Viewers also liked (20)

PPT
Distributed Processing
PPT
Distributed Database Management System
PPTX
Distributed database
PDF
Technically Distributed - Tools and Techniques for Distributed Teams
PDF
chef loves windows
PDF
Apache Drill: An Active, Ad-hoc Query System for large-scale Data Sets
PPT
Hadoop a Natural Choice for Data Intensive Log Processing
PPTX
Hadoop 3.0 features
PDF
Hadoop: Distributed data processing
PPS
Heterogeneous Or Homogeneous Classrooms Jane
PDF
Distributed Data Processing Workshop - SBU
PDF
Distributed processing
PDF
Solving Problems with Graphs
PDF
Quantum Processes in Graph Computing
PPTX
Distributed Query Processing
DOCX
Load balancing in Distributed Systems
PPT
امن الوثائق والمعلومات عرض تقديمى
PDF
Data Lake for the Cloud: Extending your Hadoop Implementation
PPTX
Apache Hadoop 3.0 What's new in YARN and MapReduce
PPTX
Database design process
Distributed Processing
Distributed Database Management System
Distributed database
Technically Distributed - Tools and Techniques for Distributed Teams
chef loves windows
Apache Drill: An Active, Ad-hoc Query System for large-scale Data Sets
Hadoop a Natural Choice for Data Intensive Log Processing
Hadoop 3.0 features
Hadoop: Distributed data processing
Heterogeneous Or Homogeneous Classrooms Jane
Distributed Data Processing Workshop - SBU
Distributed processing
Solving Problems with Graphs
Quantum Processes in Graph Computing
Distributed Query Processing
Load balancing in Distributed Systems
امن الوثائق والمعلومات عرض تقديمى
Data Lake for the Cloud: Extending your Hadoop Implementation
Apache Hadoop 3.0 What's new in YARN and MapReduce
Database design process
Ad

Similar to Hadoop: Distributed Data Processing (20)

PPTX
Hadoop: An Industry Perspective
PPT
How Hadoop Revolutionized Data Warehousing at Yahoo and Facebook
PPTX
Is hadoop for you
PPTX
Presentation sreenu dwh-services
PPTX
Introduction to Hadoop and Big Data
PPTX
Big Data and Hadoop
PPTX
Not Just Another Overview of Apache Hadoop
PPT
Hadoop ecosystem framework n hadoop in live environment
PDF
Hadoop introduction
PPT
Finding the needles in the haystack. An Overview of Analyzing Big Data with H...
PPT
Eric Baldeschwieler Keynote from Storage Developers Conference
PPTX
Hadoop Ecosystem
PPTX
Hadoop_EcoSystem slide by CIDAC India.pptx
PDF
Intro to Hadoop Presentation at Carnegie Mellon - Silicon Valley
PPTX
Introduction to BIg Data and Hadoop
PDF
Hadoop Master Class : A concise overview
PPTX
INTRODUCTION TO BIG DATA HADOOP
PPTX
Module 1- Introduction to Big Data and Hadoop
PDF
Hadoop Tutorial for Big Data Enthusiasts
PPT
Apache hadoop, hdfs and map reduce Overview
Hadoop: An Industry Perspective
How Hadoop Revolutionized Data Warehousing at Yahoo and Facebook
Is hadoop for you
Presentation sreenu dwh-services
Introduction to Hadoop and Big Data
Big Data and Hadoop
Not Just Another Overview of Apache Hadoop
Hadoop ecosystem framework n hadoop in live environment
Hadoop introduction
Finding the needles in the haystack. An Overview of Analyzing Big Data with H...
Eric Baldeschwieler Keynote from Storage Developers Conference
Hadoop Ecosystem
Hadoop_EcoSystem slide by CIDAC India.pptx
Intro to Hadoop Presentation at Carnegie Mellon - Silicon Valley
Introduction to BIg Data and Hadoop
Hadoop Master Class : A concise overview
INTRODUCTION TO BIG DATA HADOOP
Module 1- Introduction to Big Data and Hadoop
Hadoop Tutorial for Big Data Enthusiasts
Apache hadoop, hdfs and map reduce Overview

More from Cloudera, Inc. (20)

PPTX
Partner Briefing_January 25 (FINAL).pptx
PPTX
Cloudera Data Impact Awards 2021 - Finalists
PPTX
2020 Cloudera Data Impact Awards Finalists
PPTX
Edc event vienna presentation 1 oct 2019
PPTX
Machine Learning with Limited Labeled Data 4/3/19
PPTX
Data Driven With the Cloudera Modern Data Warehouse 3.19.19
PPTX
Introducing Cloudera DataFlow (CDF) 2.13.19
PPTX
Introducing Cloudera Data Science Workbench for HDP 2.12.19
PPTX
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
PPTX
Leveraging the cloud for analytics and machine learning 1.29.19
PPTX
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
PPTX
Leveraging the Cloud for Big Data Analytics 12.11.18
PPTX
Modern Data Warehouse Fundamentals Part 3
PPTX
Modern Data Warehouse Fundamentals Part 2
PPTX
Modern Data Warehouse Fundamentals Part 1
PPTX
Extending Cloudera SDX beyond the Platform
PPTX
Federated Learning: ML with Privacy on the Edge 11.15.18
PPTX
Analyst Webinar: Doing a 180 on Customer 360
PPTX
Build a modern platform for anti-money laundering 9.19.18
PPTX
Introducing the data science sandbox as a service 8.30.18
Partner Briefing_January 25 (FINAL).pptx
Cloudera Data Impact Awards 2021 - Finalists
2020 Cloudera Data Impact Awards Finalists
Edc event vienna presentation 1 oct 2019
Machine Learning with Limited Labeled Data 4/3/19
Data Driven With the Cloudera Modern Data Warehouse 3.19.19
Introducing Cloudera DataFlow (CDF) 2.13.19
Introducing Cloudera Data Science Workbench for HDP 2.12.19
Shortening the Sales Cycle with a Modern Data Warehouse 1.30.19
Leveraging the cloud for analytics and machine learning 1.29.19
Modernizing the Legacy Data Warehouse – What, Why, and How 1.23.19
Leveraging the Cloud for Big Data Analytics 12.11.18
Modern Data Warehouse Fundamentals Part 3
Modern Data Warehouse Fundamentals Part 2
Modern Data Warehouse Fundamentals Part 1
Extending Cloudera SDX beyond the Platform
Federated Learning: ML with Privacy on the Edge 11.15.18
Analyst Webinar: Doing a 180 on Customer 360
Build a modern platform for anti-money laundering 9.19.18
Introducing the data science sandbox as a service 8.30.18

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Building Integrated photovoltaic BIPV_UPV.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Empathic Computing: Creating Shared Understanding
Review of recent advances in non-invasive hemoglobin estimation
Programs and apps: productivity, graphics, security and other tools
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Hadoop: Distributed Data Processing

  • 2. OutlineScaling for Large Data ProcessingWhat is Hadoop?HDFS and MapReduceHadoop EcosystemHadoop vsRDBMSesConclusion
  • 3. Current Storage Systems Can’t ComputeAd hoc Queries &Data MiningInteractive AppsRDBMS (200GB/day)ETL GridNon-ConsumptionFiler heads are a bottleneckStorage Farm for Unstructured Data (20TB/day)Mostly AppendCollectionInstrumentation
  • 4. The Solution: A Store-Compute GridInteractive Apps“Batch” AppsRDBMSAd hoc Queries& Data MiningETL and AggregationsStorage + ComputationMostly AppendCollectionInstrumentation
  • 5. What is Hadoop?A scalable fault-tolerant grid operating system for data storage and processingIts scalability comes from the marriage of:HDFS: Self-Healing High-Bandwidth Clustered StorageMapReduce: Fault-Tolerant Distributed ProcessingOperates on unstructured and structured dataA large and active ecosystem (many developers and additions like HBase, Hive, Pig, …)Open source under the friendly Apache Licensehttp://wiki.apache.org/hadoop/
  • 6. Hadoop History2002-2004: Doug Cutting and Mike Cafarella started working on Nutch2003-2004: Google publishes GFS and MapReduce papers 2004: Cutting adds DFS & MapReduce support to Nutch2006: Yahoo! hires Cutting, Hadoop spins out of Nutch2007: NY Times converts 4TB of archives over 100 EC2s2008: Web-scale deployments at Y!, Facebook, Last.fmApril 2008: Yahoo does fastest sort of a TB, 3.5mins over 910 nodesMay 2009:Yahoo does fastest sort of a TB, 62secs over 1460 nodesYahoo sorts a PB in 16.25hours over 3658 nodesJune 2009, Oct 2009: Hadoop Summit (750), Hadoop World (500)September 2009: Doug Cutting joins Cloudera
  • 7. Hadoop Design AxiomsSystem Shall Manage and Heal ItselfPerformance Shall Scale Linearly Compute Should Move to DataSimple Core, Modular and Extensible
  • 8. HDFS: Hadoop Distributed File SystemBlock Size = 64MBReplication Factor = 3Cost/GB is a few ¢/month vs $/month
  • 10. MapReduce Example for Word CountSELECT word, COUNT(1) FROM docs GROUP BY word;cat *.txt | mapper.pl | sort | reducer.pl > out.txt(docid, text)(words, counts)Map 1(sorted words, counts)Reduce 1Output File 1(sorted words, sum of counts)Split 1Be, 5“To Be Or Not To Be?”Be, 30Be, 12Reduce iOutput File i(sorted words, sum of counts)(docid, text)Map iSplit iBe, 7Be, 6ShuffleReduce ROutput File R(sorted words, sum of counts)(docid, text)Map M(sorted words, counts)(words, counts)Split N
  • 11. Hadoop High-Level ArchitectureHadoop ClientContacts Name Node for data or Job Tracker to submit jobsName NodeMaintains mapping of file blocks to data node slavesJob TrackerSchedules jobs across task tracker slavesData NodeStores and serves blocks of dataTask TrackerRuns tasks (work units) within a jobShare Physical Node
  • 12. Apache Hadoop EcosystemBI ReportingETL ToolsRDBMSHive (SQL)SqoopPig (Data Flow)MapReduce (Job Scheduling/Execution System)(Streaming/Pipes APIs)HBase(key-value store)Avro (Serialization)Zookeepr (Coordination)HDFS(Hadoop Distributed File System)
  • 13. Relational Databases:Hadoop:Use The Right Tool For The Right Job When to use?Affordable Storage/Compute
  • 14. Structured or Not (Agility)
  • 15. Resilient Auto ScalabilityWhen to use?Interactive Reporting (
  • 17. InteroperabilityEconomics of HadoopTypical Hardware:Two Quad Core Nehalems24GB RAM12 * 1TB SATA disks (JBOD mode, no need for RAID)1 Gigabit Ethernet cardCost/node: $5K/nodeEffective HDFS Space:¼ reserved for temp shuffle space, which leaves 9TB/node3 way replication leads to 3TB effective HDFS space/nodeBut assuming 7x compression that becomes ~ 20TB/nodeEffective Cost per user TB: $250/TBOther solutions cost in the range of $5K to $100K per user TB
  • 18. Sample Talks from Hadoop World ‘09VISA: Large Scale Transaction AnalysisJP Morgan Chase: Data Processing for Financial ServicesChina Mobile: Data Mining Platform for Telecom IndustryRackspace: Cross Data Center Log ProcessingBooz Allen Hamilton: Protein Alignment using HadoopeHarmony: Matchmaking in the Hadoop CloudGeneral Sentiment: Understanding Natural LanguageYahoo!: Social Graph AnalysisVisible Technologies: Real-Time Business IntelligenceFacebook: Rethinking the Data Warehouse with Hadoop and HiveSlides and Videos at http://www.cloudera.com/hadoop-world-nyc
  • 20. ConclusionHadoop is a data grid operating system which provides an economically scalable solution for storing and processing large amounts of unstructured or structured data over long periods of time.
  • 21. Contact InformationAmrAwadallahCTO, Cloudera [email protected]://twitter.com/awadallahOnline Training Videos and Info:http://cloudera.com/hadoop-traininghttp://cloudera.com/bloghttp://twitter.com/cloudera

Editor's Notes

  • #5: The solution is to *augment* the current RDBMSes with a “smart” storage/processing system. The original event level data is kept in this smart storage layer and can be mined as needed. The aggregate data is kept in the RDBMSes for interactive reporting and analytics.
  • #6: The system is self-healing in the sense that it automatically routes around failure. If a node fails then its workload and data are transparently shifted some where else.The system is intelligent in the sense that the MapReduce scheduler optimizes for the processing to happen on the same node storing the associated data (or co-located on the same leaf Ethernet switch), it also speculatively executes redundant tasks if certain nodes are detected to be slow.One of the key benefits of Hadoop is the ability to just upload any unstructured files to it without having to “schematize” them first. You can dump any type of data into Hadoop then the input record readers will abstract it out as if it was structured (i.e. schema on read vs on write)Open Source Software allows for innovation by partners and customers. It also enables third-party inspection of source code which provides assurances on security and product quality.1 HDD = 75 MB/sec, 1000 HDDs = 75 GB/sec, the “head of fileserver” bottleneck is eliminated.
  • #7: http://developer.yahoo.net/blogs/hadoop/2009/05/hadoop_sorts_a_petabyte_in_162.html100s of deployments worldwide (http://wiki.apache.org/hadoop/PoweredBy)
  • #8: Speculative Execution, Data rebalancing, Background Checksumming, etc.
  • #9: Pool commodity servers in a single hierarchical namespace.Designed for large files that are written once and read many times.Example here shows what happens with a replication factor of 3, each data block is present in at least 3 separate data nodes.Typical Hadoop node is eight cores with 16GB ram and four 1TB SATA disks.Default block size is 64MB, though most folks now set it to 128MB
  • #10: Differentiate between MapReduce the platform and MapReduce the programming model. The analogy is similar to the RDBMs which executes the queries, and SQL which is the language for the queries.MapReduce can run on top of HDFS or a selection of other storage systemsIntelligent scheduling algorithms for locality, sharing, and resource optimization.
  • #11: Think: SELECT word, count(*) FROM documents GROUP BY wordCheckout ParBASH:http://cloud-dev.blogspot.com/2009/06/introduction-to-parbash.html
  • #12: The Data Node slave and the Task Tracker slave can, and should, share the same server instance to leverage data locality whenever possible.The NameNode and JobTracker are currently SPOFs which can affect the availability of the system by around 15 mins (no data loss though, so the system is reliable, but can suffer from downtime occasionally). That issue is currently being addressed by the Apache Hadoop community using Zookeeper.
  • #13: HBase: Low Latency Random-Access with per-row consistency for updates/inserts/deletesJava MapReduceGives the most flexibility and performance, but with a potentially longer development cycleStreaming MapReduceAllows you to develop in any language of your choice, but slightly slower performancePigA relatively new data-flow language (contributed by Yahoo), suitable for ETL like workloads (procedural multi-stage jobs)HiveA SQL warehouse on top of MapReduce (contributed by Facebook), translates SQL into MapReduceHive Features: A subset of SQL covering the most common statementsAgile data types: Array, Map, Struct, and JSON objectsUser Defined Functions and AggregatesRegular Expression supportMapReduce supportJDBC supportPartitions and Buckets (for performance optimization)In The Works: Indices, Columnar Storage, Views, Microstrategy compatibility, Explode/CollectMore details: http://wiki.apache.org/hadoop/HiveQuery: SELECT, FROM, WHERE, JOIN, GROUP BY, SORT BY, LIMIT, DISTINCT, UNION ALLJoin: LEFT, RIGHT, FULL, OUTER, INNERDDL: CREATE TABLE, ALTER TABLE, DROP TABLE, DROP PARTITION, SHOW TABLES, SHOW PARTITIONSDML: LOAD DATA INTO, FROM INSERTTypes: TINYINT, INT, BIGINT, BOOLEAN, DOUBLE, STRING, ARRAY, MAP, STRUCT, JSON OBJECTQuery:Subqueries in FROM, User Defined Functions, User Defined Aggregates, Sampling (TABLESAMPLE)Relational: IS NULL, IS NOT NULL, LIKE, REGEXPBuilt in aggregates: COUNT, MAX, MIN, AVG, SUMBuilt in functions: CAST, IF, REGEXP_REPLACE, …Other: EXPLAIN, MAP, REDUCE, DISTRIBUTE BYList and Map operators: array[i], map[k], struct.field
  • #14: Sports car is refined, accelerates very fast, and has a lot of addons/features. But it is pricey on a per bit basis and is expensive to maintain.Cargo train is rough, missing a lot of “luxury”, slow to accelerate, but it can carry almost anything and once it gets going it can move a lot of stuff very economically.Hadoop:A data grid operating systemStores Files (Unstructured)Stores 10s of petabytesProcesses 10s of PB/jobWeak ConsistencyScan all blocks in all filesQueries & Data ProcessingBatch response (>1sec)Relational Databases:An ACID Database systemStores Tables (Schema)Stores 100s of terabytesProcesses 10s of TB/queryTransactional ConsistencyLookup rows using indexMostly queriesInteractive responseHadoop Myths:Hadoop MapReduce requires Rocket ScientistsHadoop has the benefit of both worlds, the simplicity of SQL and the power of Java (or any other language for that matter)Hadoop is not very efficient hardware wiseHadoop optimizes for scalability, stability and flexibility versus squeezing every tiny bit of hardware performance It is cost efficient to throw more “pizza box” servers to gain performance than hire more engineers to manage, configure, and optimize the system or pay 10x the hardware cost in softwareHadoop can’t do quick random lookupsHBase enables low-latency key-value pair lookups (no fast joins)Hadoop doesn’t support updates/inserts/deletesNot for multi-row transactions, but HBase enables transactions with row-level consistency semanticsHadoop isn’t highly availableThough Hadoop rarely loses data, it can suffer from down-time if the master NameNode goes down. This issue is currently being addressed, and there are HW/OS/VM solutions for itHadoop can’t be backed-up/recovered quicklyHDFS, like other file systems, can copy files very quickly. It also has utilities to copy data between HDFS clustersHadoop doesn’t have securityHadoop has Unix style user/group permissions, and the community is working on improving its security modelHadoop can’t talk to other systemsHadoop can talk to BI tools using JDBC, to RDBMSes using Sqoop, and to other systems using FUSE, WebDAV & FTP