SlideShare a Scribd company logo
HIVE AND PRESTO
FOR BIG DATA
ANALYTICS IN THE
CLOUD
WHAT’S NEW ABOUT BIG DATA YOU
SAY…
 Traditionally, analytics on data internal to an organization
 Customer data
 ERP data
 Some pre-digested external data like market research
 Sophisticated analytics using new data sources
 Social data
 Website data
Low density, fine grained and massive
“Most EDWs are < 2TB”
LOW DENSITY, HIGH VOLUME
DATA
Amul comment data: 18000 * 140 * 60 * 24 * 30 = 100 GB per month
Category Unique visitors
Retail –
Luxury goods
20 million
Retail –
consumer
goods
30 million
Retail – tickets 26 million
Social Media Website data
Traditional technologies cannot handle this low-density, high volume data
SKELETON OF A BIG DATA
PROJECT
Internal
Data
External
Data
TB - PBs
Actionable report
Analytics Workflow
HOW DO THE BIG GUYS DO IT?
 Build data centers
 Buy or build custom big-data software
 Hire ETL engineers who manage bringing data into the system
 Hire admins to keep it all running
 Hire data scientists to come up with interesting questions
 Hire developers who can translate questions into programs
Lots of upfront
investment
Long time to get started
Lots of risks
BIG DATA PROJECT ENTAILS
LANDSCAPE IS CHANGING
 Advent of public clouds
 Cheap, reliable storage
 Provision 10-1000s of machines in a couple of minutes
 Pay as you go, grow as you please
 Free / inexpensive big-data software
 Hadoop, Hive, Presto
CLOUD PRIMITIVES
 Persistent object store e.g. AWS S3
 Reliability is basically solved for you (*)
 Ability to provision clusters with pre-built images in a couple of
minutes
 Pay by the hour (or by the minute)
 Spot instances (AWS)
 Relational DB as a Service
 MySQL, PostgreSQL etc
THE CLOUD CAN HANDLE YOUR DATA
CLOUD’S COMPUTE FLEXIBILITY
 Analytics workloads tend to be bursty
 Most orgs struggle to predict usage 2-3 months down the line
 Tend to overprovision compute
 Result: < 30% utilization of their hardware
 Cloud allows you to scale up and down
 Trickier for a big data system, but possible
Chen et al,
VLDB 2012
Provision for peak workload
BIG DATA SOFTWARE
 Many open source projects
 Hadoop based on Google’s MR paper (Yahoo)
 Hive (SQL-on-Hadoop)
 Presto (Fast SQL)
 Production ready, running at scale at Yahoo, FB and many other
environments
ENTER HADOOP
 Open-source implementation of Map-reduce used by Google to
index trillions of web pages
 Allows programmers to write distributed programs using map and
reduce abstractions
 Ability to run these programs on large amounts of data
 Uses bunch of cheap hardware, can tolerate failures
HADOOP SCALES!
HIVE: SQL ON HADOOP
 Facebook had a Multi Petabyte Warehouse
 Had 80+ engineers writing Hadoop jobs
 Files are insufficient data abstractions
 Need tables, schemas, partitions, indices
 SQL is highly popular
 So, implement SQL on top of Hadoop
 Allowed non-programmers to process all the data
 FB open-sourced it
 Production ready
 Processes 25PB of data in FB
 Processes 20PB of data at Qubole
HIVE ALLOWS YOU TO DESCRIBE DATA
 Example
 My data lives in Amazon S3 in a specific location
 It is in delimited text format
 Please create a virtual table for me
 Number of data formats: JSON, Text, Binary, Avro, ProtoBuf, Thrift
 Analytics is often a downstream process
 Conversion of data is time consuming and not productive
create external table nation (N_NATIONKEY INT, N_NAME STRING,
N_REGIONKEY INT, N_COMMENT STRING)
ROW FORMAT DELIMITED
STORED AS TEXTFILE
LOCATION 's3n://public-qubole/datasets/tpch5G/nation';
HIVE EXTENSIBILITY
 Connect to external data sources like MongoDB
 Write code to understand new data formats - serdes
 Custom UDFs in Java
 Plug in custom code in python or any other language
SELECT
TRANSFORM (hosting_ids, user_id, d)
USING 'python combine_arrays.py' AS (hosting_ranks_array, user_id, d)
FROM s_table;
HIVE ALLOWS YOU TO QUERY THE
DATA
 SQL-Like
 Query is parallelized using Hadoop as execution engine
Select count(*) from nation;
Count(*)
Count(*)
Sum()
HIVE EXECUTION
 Split Hive query into multiple Hadoop/MR jobs
 Run Job 1, save intermediate output to HDFS
 Run Job 2..
 Return results
 Data parallel because every hadoop job runs on number of
machines
T11
100MB
T12
100MB
10 files
5 files
5 files
TASK PARALLELISM
T1 T2 T3
100MB 100MB 100MB10 files
EXECUTION MODEL 1
T1
100MB
T2
100MB
T3
100MB10 files
• Only 100MB of memory required
• Can stop and resume
• Allows for multiplexing multiple pipelines
• Can tolerate failures
• Spilling can be expensive
• Time to first result is high
EXECUTION MODEL 2
T1
100MB
T2
100MB
T3
100MB10 files
• Task parallelism
• Needs 3X memory
• No spilling, hence much faster
• Early first results
• Stop and resume is trickier
• Multiplexing is more difficult
• Cannot tolerate failures
ENTER PRESTO
 Hive was EM1 and had associated disadvantages
 Internal project at Facebook to implement EM2 (Presto)
 Use case was interactive queries over the same data
 Open sourced late 2013
 Promised much faster query performance
 In-memory processing, aggressive pipelining
 Supports all the data formats that Hive does
 Can’t plug in user code at this point, vanilla SQL
CONTRASTING HIVE AND PRESTO
Hive Presto
Uses Hadoop MR for
execution (EM1)
Pipelined execution model
(EM2)
Spills intermediate data to
FS
Intermediate data in
memory
Can tolerate failures Does not tolerate failures
Automatic join ordering User-specified join ordering
Can handle joins of two
large tables
One table needs to fit in
memory
Supports grouping sets Does not support GS
Plug in custom code Cannot plug in custom code
More data types Limited data types
Hive 0.11 vs Presto 0.60
PERFORMANCE COMPARISON
• Presto is 2.5-7x faster
• But, some queries just run out of
memory
• Contrasts the execution models
IN A NUTSHELL
SAMPLE SETUP
Cloud Storage
Sqoop
Application
Sync
Heavy duty queries Interactive queries
CRYSTAL BALL
 Hive is actively working on task parallelism as part of the Stinger
Initiative
 Presto is also making rapid progress in bridging some of its gaps
 There are other open source projects:
 Impala, Shark, Drill, Tajo
 Lots of goodies for users
CONCLUSION
 Big Data Analytics is becoming accessible and affordable
 Public clouds give flexibility and change economics
 Hive and Presto provide intuitive and powerful ways to interact
with your data

More Related Content

What's hot (20)

KEY
Cascalog
nathanmarz
 
PPTX
Data Analytic Technology Platforms: Options and Tradeoffs
J Singh
 
PDF
Data Engineering Basics
Catherine Kimani
 
PPTX
Data Science at Scale by Sarah Guido
Spark Summit
 
PDF
Building Better Analytics Workflows (Strata-Hadoop World 2013)
Wes McKinney
 
PPTX
Big data vahidamiri-tabriz-13960226-datastack.ir
datastack
 
PDF
Lighthouse - an open-source library to build data lakes - Kris Peeters
Data Science Leuven
 
PDF
From zero to hero with the actor model - Tamir Dresher - Odessa 2019
Tamir Dresher
 
PDF
Building Scalable Big Data Pipelines
Christian Gügi
 
PDF
H2O Rains with Databricks Cloud - NY 02.16.16
Sri Ambati
 
PDF
Fully Automated QA System For Large Scale Search And Recommendation Engines U...
Spark Summit
 
PDF
Spark Summit EU talk by Pat Patterson
Spark Summit
 
PPTX
Watching Pigs Fly with the Netflix Hadoop Toolkit (Hadoop Summit 2013)
Jeff Magnusson
 
PDF
Building a data pipeline to ingest data into Hadoop in minutes using Streamse...
Guglielmo Iozzia
 
PDF
Succinct Spark: Fast Interactive Queries on Compressed RDDs by Rachit Agarwal
Spark Summit
 
PDF
Big Data Day LA 2015 - Machine Learning on Largish Data by Szilard Pafka of E...
Data Con LA
 
PPT
Apache Hadoop
Kumaresan Manickavelu
 
PDF
Bi on Big Data - Strata 2016 in London
Dremio Corporation
 
PPT
Another Intro To Hadoop
Adeel Ahmad
 
PPTX
Agile data warehousing
Sneha Challa
 
Cascalog
nathanmarz
 
Data Analytic Technology Platforms: Options and Tradeoffs
J Singh
 
Data Engineering Basics
Catherine Kimani
 
Data Science at Scale by Sarah Guido
Spark Summit
 
Building Better Analytics Workflows (Strata-Hadoop World 2013)
Wes McKinney
 
Big data vahidamiri-tabriz-13960226-datastack.ir
datastack
 
Lighthouse - an open-source library to build data lakes - Kris Peeters
Data Science Leuven
 
From zero to hero with the actor model - Tamir Dresher - Odessa 2019
Tamir Dresher
 
Building Scalable Big Data Pipelines
Christian Gügi
 
H2O Rains with Databricks Cloud - NY 02.16.16
Sri Ambati
 
Fully Automated QA System For Large Scale Search And Recommendation Engines U...
Spark Summit
 
Spark Summit EU talk by Pat Patterson
Spark Summit
 
Watching Pigs Fly with the Netflix Hadoop Toolkit (Hadoop Summit 2013)
Jeff Magnusson
 
Building a data pipeline to ingest data into Hadoop in minutes using Streamse...
Guglielmo Iozzia
 
Succinct Spark: Fast Interactive Queries on Compressed RDDs by Rachit Agarwal
Spark Summit
 
Big Data Day LA 2015 - Machine Learning on Largish Data by Szilard Pafka of E...
Data Con LA
 
Apache Hadoop
Kumaresan Manickavelu
 
Bi on Big Data - Strata 2016 in London
Dremio Corporation
 
Another Intro To Hadoop
Adeel Ahmad
 
Agile data warehousing
Sneha Challa
 

Similar to Big dataproposal (20)

PPTX
Big Data and Hadoop
Flavio Vit
 
PPTX
Big dataanalyticsinthecloud
Sivaramakrishnan Narayanan
 
PDF
Big data and hadoop
AshishRathore72
 
PPT
Hive @ Hadoop day seattle_2010
nzhang
 
PPT
Hadoop World 2011: Building Web Analytics Processing on Hadoop at CBS Interac...
Cloudera, Inc.
 
PPT
Hadoop Frameworks Panel__HadoopSummit2010
Yahoo Developer Network
 
PPTX
عصر کلان داده، چرا و چگونه؟
datastack
 
PDF
Big Data , Big Problem?
Mohammadhasan Farazmand
 
PPT
Final deck
Steve Watt
 
PPTX
Big Data with hadoop, Spark and BigQuery (Google cloud next Extended 2017 Kar...
Imam Raza
 
PDF
Building a Big Data platform with the Hadoop ecosystem
Gregg Barrett
 
PPT
Hadoop World 2011: Hadoop’s Life in Enterprise Systems - Y Masatani, NTTData
Cloudera, Inc.
 
PPT
Big Data: An Overview
C. Scyphers
 
PDF
Prague data management meetup 2018-03-27
Martin Bém
 
PPTX
Big data analytics: Technology's bleeding edge
Bhavya Gulati
 
PPT
Hw09 Matchmaking In The Cloud
Cloudera, Inc.
 
PDF
Hadoop Maharajathi,II-M.sc.,Computer Science,Bonsecours college for women
maharajothip1
 
PPT
How Hadoop Revolutionized Data Warehousing at Yahoo and Facebook
Amr Awadallah
 
PPTX
Big data architectures and the data lake
James Serra
 
PPTX
Big data
revathireddyb
 
Big Data and Hadoop
Flavio Vit
 
Big dataanalyticsinthecloud
Sivaramakrishnan Narayanan
 
Big data and hadoop
AshishRathore72
 
Hive @ Hadoop day seattle_2010
nzhang
 
Hadoop World 2011: Building Web Analytics Processing on Hadoop at CBS Interac...
Cloudera, Inc.
 
Hadoop Frameworks Panel__HadoopSummit2010
Yahoo Developer Network
 
عصر کلان داده، چرا و چگونه؟
datastack
 
Big Data , Big Problem?
Mohammadhasan Farazmand
 
Final deck
Steve Watt
 
Big Data with hadoop, Spark and BigQuery (Google cloud next Extended 2017 Kar...
Imam Raza
 
Building a Big Data platform with the Hadoop ecosystem
Gregg Barrett
 
Hadoop World 2011: Hadoop’s Life in Enterprise Systems - Y Masatani, NTTData
Cloudera, Inc.
 
Big Data: An Overview
C. Scyphers
 
Prague data management meetup 2018-03-27
Martin Bém
 
Big data analytics: Technology's bleeding edge
Bhavya Gulati
 
Hw09 Matchmaking In The Cloud
Cloudera, Inc.
 
Hadoop Maharajathi,II-M.sc.,Computer Science,Bonsecours college for women
maharajothip1
 
How Hadoop Revolutionized Data Warehousing at Yahoo and Facebook
Amr Awadallah
 
Big data architectures and the data lake
James Serra
 
Big data
revathireddyb
 
Ad

More from Qubole (20)

PPTX
Data Warehouse Modernization - Big Data in the Cloud Success with Qubole on O...
Qubole
 
PDF
7 Big Data Challenges and How to Overcome Them
Qubole
 
PDF
State of Big Data Adoption
Qubole
 
PPTX
Big Data at Pinterest - Presented by Qubole
Qubole
 
PDF
5 Factors Impacting Your Big Data Project's Performance
Qubole
 
PPTX
Spark on Yarn
Qubole
 
PPTX
Atlanta MLConf
Qubole
 
PDF
Running Spark on Cloud
Qubole
 
PDF
Qubole State of the Big Data Industry
Qubole
 
PPTX
Big Data Platform at Pinterest
Qubole
 
PPTX
Atlanta Data Science Meetup | Qubole slides
Qubole
 
PPTX
Qubole presentation for the Cleveland Big Data and Hadoop Meetup
Qubole
 
PDF
BIPD Tech Tuesday Presentation - Qubole
Qubole
 
PDF
Harnessing the Hadoop Ecosystem Optimizations in Apache Hive
Qubole
 
PPTX
Optimizing Big Data to run in the Public Cloud
Qubole
 
PPTX
Getting to 1.5M Ads/sec: How DataXu manages Big Data
Qubole
 
PDF
Expert Big Data Tips
Qubole
 
PDF
Presto in the cloud
Qubole
 
PPTX
Basic Sentiment Analysis using Hive
Qubole
 
PDF
Effective Hive Queries
Qubole
 
Data Warehouse Modernization - Big Data in the Cloud Success with Qubole on O...
Qubole
 
7 Big Data Challenges and How to Overcome Them
Qubole
 
State of Big Data Adoption
Qubole
 
Big Data at Pinterest - Presented by Qubole
Qubole
 
5 Factors Impacting Your Big Data Project's Performance
Qubole
 
Spark on Yarn
Qubole
 
Atlanta MLConf
Qubole
 
Running Spark on Cloud
Qubole
 
Qubole State of the Big Data Industry
Qubole
 
Big Data Platform at Pinterest
Qubole
 
Atlanta Data Science Meetup | Qubole slides
Qubole
 
Qubole presentation for the Cleveland Big Data and Hadoop Meetup
Qubole
 
BIPD Tech Tuesday Presentation - Qubole
Qubole
 
Harnessing the Hadoop Ecosystem Optimizations in Apache Hive
Qubole
 
Optimizing Big Data to run in the Public Cloud
Qubole
 
Getting to 1.5M Ads/sec: How DataXu manages Big Data
Qubole
 
Expert Big Data Tips
Qubole
 
Presto in the cloud
Qubole
 
Basic Sentiment Analysis using Hive
Qubole
 
Effective Hive Queries
Qubole
 
Ad

Recently uploaded (20)

PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of Artificial Intelligence (AI)
Mukul
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 

Big dataproposal

  • 1. HIVE AND PRESTO FOR BIG DATA ANALYTICS IN THE CLOUD
  • 2. WHAT’S NEW ABOUT BIG DATA YOU SAY…  Traditionally, analytics on data internal to an organization  Customer data  ERP data  Some pre-digested external data like market research  Sophisticated analytics using new data sources  Social data  Website data Low density, fine grained and massive “Most EDWs are < 2TB”
  • 3. LOW DENSITY, HIGH VOLUME DATA Amul comment data: 18000 * 140 * 60 * 24 * 30 = 100 GB per month Category Unique visitors Retail – Luxury goods 20 million Retail – consumer goods 30 million Retail – tickets 26 million Social Media Website data Traditional technologies cannot handle this low-density, high volume data
  • 4. SKELETON OF A BIG DATA PROJECT Internal Data External Data TB - PBs Actionable report Analytics Workflow
  • 5. HOW DO THE BIG GUYS DO IT?  Build data centers  Buy or build custom big-data software  Hire ETL engineers who manage bringing data into the system  Hire admins to keep it all running  Hire data scientists to come up with interesting questions  Hire developers who can translate questions into programs
  • 6. Lots of upfront investment Long time to get started Lots of risks BIG DATA PROJECT ENTAILS
  • 7. LANDSCAPE IS CHANGING  Advent of public clouds  Cheap, reliable storage  Provision 10-1000s of machines in a couple of minutes  Pay as you go, grow as you please  Free / inexpensive big-data software  Hadoop, Hive, Presto
  • 8. CLOUD PRIMITIVES  Persistent object store e.g. AWS S3  Reliability is basically solved for you (*)  Ability to provision clusters with pre-built images in a couple of minutes  Pay by the hour (or by the minute)  Spot instances (AWS)  Relational DB as a Service  MySQL, PostgreSQL etc
  • 9. THE CLOUD CAN HANDLE YOUR DATA
  • 10. CLOUD’S COMPUTE FLEXIBILITY  Analytics workloads tend to be bursty  Most orgs struggle to predict usage 2-3 months down the line  Tend to overprovision compute  Result: < 30% utilization of their hardware  Cloud allows you to scale up and down  Trickier for a big data system, but possible Chen et al, VLDB 2012 Provision for peak workload
  • 11. BIG DATA SOFTWARE  Many open source projects  Hadoop based on Google’s MR paper (Yahoo)  Hive (SQL-on-Hadoop)  Presto (Fast SQL)  Production ready, running at scale at Yahoo, FB and many other environments
  • 12. ENTER HADOOP  Open-source implementation of Map-reduce used by Google to index trillions of web pages  Allows programmers to write distributed programs using map and reduce abstractions  Ability to run these programs on large amounts of data  Uses bunch of cheap hardware, can tolerate failures
  • 14. HIVE: SQL ON HADOOP  Facebook had a Multi Petabyte Warehouse  Had 80+ engineers writing Hadoop jobs  Files are insufficient data abstractions  Need tables, schemas, partitions, indices  SQL is highly popular  So, implement SQL on top of Hadoop  Allowed non-programmers to process all the data  FB open-sourced it  Production ready  Processes 25PB of data in FB  Processes 20PB of data at Qubole
  • 15. HIVE ALLOWS YOU TO DESCRIBE DATA  Example  My data lives in Amazon S3 in a specific location  It is in delimited text format  Please create a virtual table for me  Number of data formats: JSON, Text, Binary, Avro, ProtoBuf, Thrift  Analytics is often a downstream process  Conversion of data is time consuming and not productive create external table nation (N_NATIONKEY INT, N_NAME STRING, N_REGIONKEY INT, N_COMMENT STRING) ROW FORMAT DELIMITED STORED AS TEXTFILE LOCATION 's3n://public-qubole/datasets/tpch5G/nation';
  • 16. HIVE EXTENSIBILITY  Connect to external data sources like MongoDB  Write code to understand new data formats - serdes  Custom UDFs in Java  Plug in custom code in python or any other language SELECT TRANSFORM (hosting_ids, user_id, d) USING 'python combine_arrays.py' AS (hosting_ranks_array, user_id, d) FROM s_table;
  • 17. HIVE ALLOWS YOU TO QUERY THE DATA  SQL-Like  Query is parallelized using Hadoop as execution engine Select count(*) from nation; Count(*) Count(*) Sum()
  • 18. HIVE EXECUTION  Split Hive query into multiple Hadoop/MR jobs  Run Job 1, save intermediate output to HDFS  Run Job 2..  Return results  Data parallel because every hadoop job runs on number of machines T11 100MB T12 100MB 10 files 5 files 5 files
  • 19. TASK PARALLELISM T1 T2 T3 100MB 100MB 100MB10 files
  • 20. EXECUTION MODEL 1 T1 100MB T2 100MB T3 100MB10 files • Only 100MB of memory required • Can stop and resume • Allows for multiplexing multiple pipelines • Can tolerate failures • Spilling can be expensive • Time to first result is high
  • 21. EXECUTION MODEL 2 T1 100MB T2 100MB T3 100MB10 files • Task parallelism • Needs 3X memory • No spilling, hence much faster • Early first results • Stop and resume is trickier • Multiplexing is more difficult • Cannot tolerate failures
  • 22. ENTER PRESTO  Hive was EM1 and had associated disadvantages  Internal project at Facebook to implement EM2 (Presto)  Use case was interactive queries over the same data  Open sourced late 2013  Promised much faster query performance  In-memory processing, aggressive pipelining  Supports all the data formats that Hive does  Can’t plug in user code at this point, vanilla SQL
  • 23. CONTRASTING HIVE AND PRESTO Hive Presto Uses Hadoop MR for execution (EM1) Pipelined execution model (EM2) Spills intermediate data to FS Intermediate data in memory Can tolerate failures Does not tolerate failures Automatic join ordering User-specified join ordering Can handle joins of two large tables One table needs to fit in memory Supports grouping sets Does not support GS Plug in custom code Cannot plug in custom code More data types Limited data types Hive 0.11 vs Presto 0.60
  • 24. PERFORMANCE COMPARISON • Presto is 2.5-7x faster • But, some queries just run out of memory • Contrasts the execution models
  • 27. CRYSTAL BALL  Hive is actively working on task parallelism as part of the Stinger Initiative  Presto is also making rapid progress in bridging some of its gaps  There are other open source projects:  Impala, Shark, Drill, Tajo  Lots of goodies for users
  • 28. CONCLUSION  Big Data Analytics is becoming accessible and affordable  Public clouds give flexibility and change economics  Hive and Presto provide intuitive and powerful ways to interact with your data