SlideShare a Scribd company logo
NoSQL and SQL Work Side-by-Side
to Tackle Real-time Big Data Needs
Allen Day
MapR Technologies
Me
• Allen Day
– Principal Data Scientist @ MapR
– Human Genomics / Bioinformatics
(PhD, UCLA School of Medicine)
• @allenday
• allenday@allenday.com
• aday@maprtech.com
You
• I’m assuming that the typical attendee:
– is a software developer
– is interested and familiar with open source
– is familiar with Hadoop, relational DBs
– has heard of or has used some NoSQL technology
Big Data Workloads
• Offline
– ETL
– Model creation & clustering & indexing
– Web Crawling
– Batch reporting
• Online
– Lightweight OLTP
– Classification & anomaly detection
– Stream processing
– Interactive reporting
SQL
What is NoSQL? Why use it?
• Traditional storage (relational DBs) are unable to
accommodate increasing # and variety of
observations
– Culprits: sensors, event logs, electronic payments
• Solution: stay responsive by relaxing ACID storage
requirements
– Denormalize (#)
– Loosen schema (variety), loosen consistency
• This is the essence of NoSQL
NoSQL Impact on Business Processes
• Traditional business intelligence (BI) tech stack
assumes relational DB storage
– Company decisions depend on this (reports, charts)
• NoSQL collected data aren’t in relational DB
– Data volume/variety is still increasing
– Tech and methods are still in flux
• Decoupled data storage and decision support
systems
– BI can’t access freshest, largest data sets
– Very high opportunity cost to business
Ideal Solution Features
• Scalable & Reliable
– Distributed replicated storage
– Distributed parallel processing
• BI application support
– Ad-hoc, interactive queries
– Real-time responsiveness
• Flexible
– Handles rapid storage and schema evolution
– Handles new analytics methods and functions
Hadoop FS
Map/Reduce, YARN{
SQL Interface{
Extensible for NoSQL,
Advanced Analytics{
From Ideals to Possibilities
• Migrate NoSQL data/processing to SQL
– High cost to marshal NoSQL data to SQL storage
– SQL systems lack advanced analytics capabilities
• Migrate SQL data to NoSQL
– Breaks compatibility for BI-dependent functions, e.g.
financial reporting
– Limited support for relational operations (joins)
• high latency
– NoSQL tech is still in flux (continuity)
• Other Approaches?
– Yes. First let’s consider a SQL/NoSQL use case
Impala
Interactive Queries & Hadoop
low-latency
Example Problem: Marketing Campaign
• Jane is an analyst at an
e-commerce company
• How does she figure
out good targeting
segments for the next
marketing campaign?
• She has some ideas…
…and lots of data
User
profiles
Transaction
information
Access
logs
Traditional System Solution 1: RDBMS
• ETL the data from
MongoDB and Hadoop
into the RDBMS
– MongoDB data must be
flattened, schematized,
filtered and aggregated
– Hadoop data must be
filtered and aggregated
• Query the data using
any SQL-based tool
User
profiles
Access
logs
Transaction
information
Traditional System Solution 2: Hadoop
• ETL the data from
Oracle and MongoDB
into Hadoop
– MongoDB data must be
flattened and
schematized
• Work with the
MapReduce team to
write custom code to
generate the desired
analyses
User
profiles
Access
logs
Transaction
information
Traditional System Solution 3: Hive
• ETL the data from
Oracle and MongoDB
into Hadoop
– MongoDB data must be
flattened and
schematized
• But HiveQL queries are
slow and BI tool
support is limited
– Marshaling/Coding
User
profiles
Access
logs
Transaction
information
What Would Google Do?
Distributed
File System
NoSQL
Interactive
analysis
Batch
processing
GFS BigTable Dremel MapReduce
HDFS HBase ???
Hadoop
MapReduce
Build Apache Drill to provide a true open source
solution to interactive analysis of Big Data
Apache Drill Overview
• Interactive analysis of Big Data using standard
SQL
• Fast
– Low latency queries
– Complement native interfaces and
MapReduce/Hive/Pig
• Open
– Community driven open source project
– Under Apache Software Foundation
• Modern
– Standard ANSI SQL:2003 (select/into)
– Nested data support
– Schema is optional
– Supports RDBMS, Hadoop and NoSQL
Interactive queries
Data analyst
Reporting
100 ms-20 min
Data mining
Modeling
Large ETL
20 min-20 hr
MapReduce
Hive
Pig
Apache Drill
How Does It Work?
Drillbit
(Coordinator)
SQL Query
Parser
Query Planner
Drillbit
(Executor)
Drillbit
(Executor)
Drillbit
(Executor)
SELECT * FROM
oracle.transactions,
mongo.users,
hdfs.events
LIMIT 1
Drill Client
Tableau
Drill ODBC Driver
Micro-
Strategy
Crystal
Reports
Driver
How Does It Work?
• Drillbits run on each node, designed to
maximize data locality
• Processing is done outside MapReduce
paradigm (but possibly within YARN)
• Queries can be fed to any Drillbit
• Coordination, query planning, optimization,
scheduling, and execution are distributed
SELECT * FROM
oracle.transactions,
mongo.users,
hdfs.events
LIMIT 1
Apache Drill: Key Features
• Full ANSI SQL:2003 support
– Use any SQL-based tool
• Nested data support
– Flattening is error-prone and often impossible
• Schema-less data source support
– Schema can change rapidly and may be record-specific
• Extensible
– DSLs, UDFs
– Custom operators (e.g. k-means clustering)
– Well-documented data source & file format APIs
How Does Impala Fit In?
Impala Strengths
• Beta currently available
• Easy install and setup on top of
Cloudera
• Faster than Hive on some queries
• SQL-like query language
Questions
• Open Source ‘Lite’
• Lacks RDBMS support
• Lacks NoSQL support beyond
HBase
• Early row materialization
increases footprint and reduces
performance
• Limited file format support
• Query results must fit in memory!
• Rigid schema is required
• No support for nested data
• SQL-like (not SQL)
Many important features are “coming soon”.
Architectural foundation is constrained. No community development.
Drill Status: Alpha Available July
• Heavy active development by multiple organizations
– Contributors from Oracle, IBM Netezza, Informatica, Clustrix, Pentaho
• Available
– Logical plan syntax and interpreter
– Reference interpreter
• In progress
– SQL interpreter
– Storage engine implementations for Accumulo, Cassandra, HBase and
various file formats
• Significant community momentum
– Over 200 people on the Drill mailing list
– Over 200 members of the Bay Area Drill User Group
– Drill meetups across the US and Europe
• Beta: Q3
Why Apache Drill Will Be Successful
Resources
• Contributors have
strong backgrounds
from companies like
Oracle, IBM Netezza,
Informatica, Clustrix
and Pentaho
Community
• Development done in
the open
• Active contributors
from multiple
companies
• Rapidly growing
Architecture
• Full SQL
• New data support
• Extensible APIs
• Full Columnar
Execution
• Beyond Hadoop
Bottom Line: Apache Drill enables NoSQL and SQL
Work Side-by-Side to Tackle Real-time Big Data Needs
Me
• Allen Day
– Principal Data Scientist @ MapR
• @allenday
• allenday@allenday.com
• aday@maprtech.com
No sql and sql - open analytics summit
ADDITIONAL SLIDES
Full SQL (ANSI SQL:2003)
• Drill supports SQL (ANSI SQL:2003 standard)
– Correlated subqueries, analytic functions, …
– SQL-like is not enough
• Use any SQL-based tool with Apache Drill
– Tableau, Microstrategy, Excel, SAP Crystal Reports, Toad, SQuirreL, …
– Standard ODBC and JDBC drivers
Drill%Worker
Drill%Worker
Driver
Client
Drillbit
SQL%Query%
Parser
Query%
Planner
Drillbits
Drill%ODBC%
Driver
Tableau
MicroStrategy
Excel
SAP%Crystal%
Reports
Nested Data
• Nested data is becoming prevalent
– JSON, BSON, XML, Protocol Buffers, Avro, etc.
– The data source may or may not be aware
• MongoDB supports nested data natively
• A single HBase value could be a JSON document
(compound nested type)
– Google Dremel’s innovation was efficient columnar
storage and querying of nested data
• Flattening nested data is error-prone and often
impossible
– Think about repeated and optional fields at every
level…
• Apache Drill supports nested data
– Extensions to ANSI SQL:2003
enum Gender {
MALE, FEMALE
}
record User {
string name;
Gender gender;
long followers;
}
{
"name": "Homer",
"gender": "Male",
"followers": 100
children: [
{name: "Bart"},
{name: "Lisa”}
]
}
JSON
Avro
Schema is Optional
• Many data sources do not have rigid schemas
– Schemas change rapidly
– Each record may have a different schema, may be sparse/wide
• Apache Drill supports querying against unknown schemas
– Query any HBase, Cassandra or MongoDB table
• User can define the schema or let the system discover it
automatically
– System of record may already have schema information
– No need to manage schema evolution
Row Key CF contents CF anchor
"com.cnn.www" contents:html = "<html>…" anchor:my.look.ca = "CNN.com"
anchor:cnnsi.com = "CNN"
"com.foxnews.www" contents:html = "<html>…" anchor:en.wikipedia.org = "Fox News"
… … …
Flexible and Extensible Architecture
• Apache Drill is designed for extensibility
• Well-documented APIs and interfaces
• Data sources and file formats
– Implement a custom scanner to support a new source/format
• Query languages
– SQL:2003 is the primary language
– Implement a custom Parser to support a Domain Specific Language
– UDFs
• Optimizers
– Drill will have a cost-based optimizer
– Clear surrounding APIs support easy optimizer exploration
• Operators
– Custom operators can be implemented (e.g. k-Means clustering)
– Operator push-down to data source (RDBMS)

More Related Content

What's hot (20)

PDF
Big Data Day LA 2016/ Big Data Track - Rapid Analytics @ Netflix LA (Updated ...
Data Con LA
 
PPTX
Virtualizing Analytics with Apache Spark: Keynote by Arsalan Tavakoli
Spark Summit
 
PPTX
Netflix Data Engineering @ Uber Engineering Meetup
Blake Irvine
 
PDF
Multiplatform Spark solution for Graph datasources by Javier Dominguez
Big Data Spain
 
PDF
Introduction to basic data analytics tools
Nascenia IT
 
PPTX
Rapid Data Analytics @ Netflix
Data Con LA
 
PPTX
2016 Tableau in the Cloud - A Netflix Original (AWS Re:invent)
Albert Wong
 
PDF
Mastering Your Customer Data on Apache Spark by Elliott Cordo
Spark Summit
 
PDF
Building a Data Science as a Service Platform in Azure with Databricks
Databricks
 
PDF
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
Big Data Spain
 
PDF
LinkedInSaxoBankDataWorkbench
Sheetal Pratik
 
PDF
How Apache Spark Changed the Way We Hire People with Tomasz Magdanski
Databricks
 
PPTX
Data engineering
Parimala Killada
 
PDF
Lambda Architecture and open source technology stack for real time big data
Trieu Nguyen
 
PDF
Building data "Py-pelines"
Rob Winters
 
PDF
Unlocking Value in Device Data Using Spark: Spark Summit East talk by John La...
Spark Summit
 
PDF
Building the Artificially Intelligent Enterprise
Databricks
 
PDF
Data Care, Feeding, and Maintenance
Mercedes Coyle
 
PDF
H2O World - Survey of Available Machine Learning Frameworks - Brendan Herger
Sri Ambati
 
PPTX
Data Engineering for Data Scientists
jlacefie
 
Big Data Day LA 2016/ Big Data Track - Rapid Analytics @ Netflix LA (Updated ...
Data Con LA
 
Virtualizing Analytics with Apache Spark: Keynote by Arsalan Tavakoli
Spark Summit
 
Netflix Data Engineering @ Uber Engineering Meetup
Blake Irvine
 
Multiplatform Spark solution for Graph datasources by Javier Dominguez
Big Data Spain
 
Introduction to basic data analytics tools
Nascenia IT
 
Rapid Data Analytics @ Netflix
Data Con LA
 
2016 Tableau in the Cloud - A Netflix Original (AWS Re:invent)
Albert Wong
 
Mastering Your Customer Data on Apache Spark by Elliott Cordo
Spark Summit
 
Building a Data Science as a Service Platform in Azure with Databricks
Databricks
 
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
Big Data Spain
 
LinkedInSaxoBankDataWorkbench
Sheetal Pratik
 
How Apache Spark Changed the Way We Hire People with Tomasz Magdanski
Databricks
 
Data engineering
Parimala Killada
 
Lambda Architecture and open source technology stack for real time big data
Trieu Nguyen
 
Building data "Py-pelines"
Rob Winters
 
Unlocking Value in Device Data Using Spark: Spark Summit East talk by John La...
Spark Summit
 
Building the Artificially Intelligent Enterprise
Databricks
 
Data Care, Feeding, and Maintenance
Mercedes Coyle
 
H2O World - Survey of Available Machine Learning Frameworks - Brendan Herger
Sri Ambati
 
Data Engineering for Data Scientists
jlacefie
 

Similar to No sql and sql - open analytics summit (20)

PPTX
Apache drill
MapR Technologies
 
PPTX
Apache Drill
Ted Dunning
 
PPSX
How to use Big Data and Data Lake concept in business using Hadoop and Spark...
Institute of Contemporary Sciences
 
PDF
Big Data Developers Moscow Meetup 1 - sql on hadoop
bddmoscow
 
PPTX
Architecting Your First Big Data Implementation
Adaryl "Bob" Wakefield, MBA
 
PPTX
Apache Drill at ApacheCon2014
Neeraja Rentachintala
 
PDF
Big Data Open Source Tools and Trends: Enable Real-Time Business Intelligence...
Perficient, Inc.
 
PPTX
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Alex Gorbachev
 
PDF
Big Data Integration Webinar: Reducing Implementation Efforts of Hadoop, NoSQ...
Pentaho
 
PDF
Swiss Big Data User Group - Introduction to Apache Drill
MapR Technologies
 
PPTX
Oracle OpenWo2014 review part 03 three_paa_s_database
Getting value from IoT, Integration and Data Analytics
 
PPT
Etu Solution Day 2014 Track-D: 掌握Impala和Spark
James Chen
 
PDF
Intro to Big Data
Zohar Elkayam
 
PPTX
Drill njhug -19 feb2013
MapR Technologies
 
PPTX
Demystifying data engineering
Thang Bui (Bob)
 
PPT
SQL, NoSQL, BigData in Data Architecture
Venu Anuganti
 
PDF
Hadoop meets Agile! - An Agile Big Data Model
Uwe Printz
 
PPTX
DA_01_Intro.pptx
Alok Mohapatra
 
PDF
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
Rittman Analytics
 
PDF
A Maturing Role of Workflows in the Presence of Heterogenous Computing Archit...
Ilkay Altintas, Ph.D.
 
Apache drill
MapR Technologies
 
Apache Drill
Ted Dunning
 
How to use Big Data and Data Lake concept in business using Hadoop and Spark...
Institute of Contemporary Sciences
 
Big Data Developers Moscow Meetup 1 - sql on hadoop
bddmoscow
 
Architecting Your First Big Data Implementation
Adaryl "Bob" Wakefield, MBA
 
Apache Drill at ApacheCon2014
Neeraja Rentachintala
 
Big Data Open Source Tools and Trends: Enable Real-Time Business Intelligence...
Perficient, Inc.
 
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Alex Gorbachev
 
Big Data Integration Webinar: Reducing Implementation Efforts of Hadoop, NoSQ...
Pentaho
 
Swiss Big Data User Group - Introduction to Apache Drill
MapR Technologies
 
Oracle OpenWo2014 review part 03 three_paa_s_database
Getting value from IoT, Integration and Data Analytics
 
Etu Solution Day 2014 Track-D: 掌握Impala和Spark
James Chen
 
Intro to Big Data
Zohar Elkayam
 
Drill njhug -19 feb2013
MapR Technologies
 
Demystifying data engineering
Thang Bui (Bob)
 
SQL, NoSQL, BigData in Data Architecture
Venu Anuganti
 
Hadoop meets Agile! - An Agile Big Data Model
Uwe Printz
 
DA_01_Intro.pptx
Alok Mohapatra
 
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
Rittman Analytics
 
A Maturing Role of Workflows in the Presence of Heterogenous Computing Archit...
Ilkay Altintas, Ph.D.
 
Ad

More from Open Analytics (20)

PDF
Cyber after Snowden (OA Cyber Summit)
Open Analytics
 
PPTX
Utilizing cyber intelligence to combat cyber adversaries (OA Cyber Summit)
Open Analytics
 
PPT
CDM….Where do you start? (OA Cyber Summit)
Open Analytics
 
PPTX
An Immigrant’s view of Cyberspace (OA Cyber Summit)
Open Analytics
 
PPTX
MOLOCH: Search for Full Packet Capture (OA Cyber Summit)
Open Analytics
 
PPTX
Observations on CFR.org Website Traffic Surge Due to Chechnya Terrorism Scare...
Open Analytics
 
PPTX
Using Real-Time Data to Drive Optimization & Personalization
Open Analytics
 
PPTX
M&A Trends in Telco Analytics
Open Analytics
 
PPTX
Competing in the Digital Economy
Open Analytics
 
PPTX
Piwik: An Analytics Alternative (Chicago Summit)
Open Analytics
 
PDF
Social Media, Cloud Computing, Machine Learning, Open Source, and Big Data An...
Open Analytics
 
PDF
Crossing the Chasm (Ikanow - Chicago Summit)
Open Analytics
 
PPTX
On the “Moneyball” – Building the Team, Product, and Service to Rival (Pegged...
Open Analytics
 
PDF
Data evolutions in media, marketing, and retail (Business Adv Group - Chicago...
Open Analytics
 
PDF
Characterizing Risk in your Supply Chain (nContext - Chicago Summit)
Open Analytics
 
PDF
From Insight to Impact (Chicago Summit - Keynote)
Open Analytics
 
PPT
Easybib Open Analytics NYC
Open Analytics
 
PPTX
MarkLogic - Open Analytics Meetup
Open Analytics
 
PPTX
The caprate presentation_july2013_open analytics dc meetup
Open Analytics
 
PPTX
Verifeed open analytics_3min deck_071713_final
Open Analytics
 
Cyber after Snowden (OA Cyber Summit)
Open Analytics
 
Utilizing cyber intelligence to combat cyber adversaries (OA Cyber Summit)
Open Analytics
 
CDM….Where do you start? (OA Cyber Summit)
Open Analytics
 
An Immigrant’s view of Cyberspace (OA Cyber Summit)
Open Analytics
 
MOLOCH: Search for Full Packet Capture (OA Cyber Summit)
Open Analytics
 
Observations on CFR.org Website Traffic Surge Due to Chechnya Terrorism Scare...
Open Analytics
 
Using Real-Time Data to Drive Optimization & Personalization
Open Analytics
 
M&A Trends in Telco Analytics
Open Analytics
 
Competing in the Digital Economy
Open Analytics
 
Piwik: An Analytics Alternative (Chicago Summit)
Open Analytics
 
Social Media, Cloud Computing, Machine Learning, Open Source, and Big Data An...
Open Analytics
 
Crossing the Chasm (Ikanow - Chicago Summit)
Open Analytics
 
On the “Moneyball” – Building the Team, Product, and Service to Rival (Pegged...
Open Analytics
 
Data evolutions in media, marketing, and retail (Business Adv Group - Chicago...
Open Analytics
 
Characterizing Risk in your Supply Chain (nContext - Chicago Summit)
Open Analytics
 
From Insight to Impact (Chicago Summit - Keynote)
Open Analytics
 
Easybib Open Analytics NYC
Open Analytics
 
MarkLogic - Open Analytics Meetup
Open Analytics
 
The caprate presentation_july2013_open analytics dc meetup
Open Analytics
 
Verifeed open analytics_3min deck_071713_final
Open Analytics
 
Ad

Recently uploaded (20)

PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 

No sql and sql - open analytics summit

  • 1. NoSQL and SQL Work Side-by-Side to Tackle Real-time Big Data Needs Allen Day MapR Technologies
  • 2. Me • Allen Day – Principal Data Scientist @ MapR – Human Genomics / Bioinformatics (PhD, UCLA School of Medicine) • @allenday • [email protected][email protected]
  • 3. You • I’m assuming that the typical attendee: – is a software developer – is interested and familiar with open source – is familiar with Hadoop, relational DBs – has heard of or has used some NoSQL technology
  • 4. Big Data Workloads • Offline – ETL – Model creation & clustering & indexing – Web Crawling – Batch reporting • Online – Lightweight OLTP – Classification & anomaly detection – Stream processing – Interactive reporting SQL
  • 5. What is NoSQL? Why use it? • Traditional storage (relational DBs) are unable to accommodate increasing # and variety of observations – Culprits: sensors, event logs, electronic payments • Solution: stay responsive by relaxing ACID storage requirements – Denormalize (#) – Loosen schema (variety), loosen consistency • This is the essence of NoSQL
  • 6. NoSQL Impact on Business Processes • Traditional business intelligence (BI) tech stack assumes relational DB storage – Company decisions depend on this (reports, charts) • NoSQL collected data aren’t in relational DB – Data volume/variety is still increasing – Tech and methods are still in flux • Decoupled data storage and decision support systems – BI can’t access freshest, largest data sets – Very high opportunity cost to business
  • 7. Ideal Solution Features • Scalable & Reliable – Distributed replicated storage – Distributed parallel processing • BI application support – Ad-hoc, interactive queries – Real-time responsiveness • Flexible – Handles rapid storage and schema evolution – Handles new analytics methods and functions Hadoop FS Map/Reduce, YARN{ SQL Interface{ Extensible for NoSQL, Advanced Analytics{
  • 8. From Ideals to Possibilities • Migrate NoSQL data/processing to SQL – High cost to marshal NoSQL data to SQL storage – SQL systems lack advanced analytics capabilities • Migrate SQL data to NoSQL – Breaks compatibility for BI-dependent functions, e.g. financial reporting – Limited support for relational operations (joins) • high latency – NoSQL tech is still in flux (continuity) • Other Approaches? – Yes. First let’s consider a SQL/NoSQL use case
  • 9. Impala Interactive Queries & Hadoop low-latency
  • 10. Example Problem: Marketing Campaign • Jane is an analyst at an e-commerce company • How does she figure out good targeting segments for the next marketing campaign? • She has some ideas… …and lots of data User profiles Transaction information Access logs
  • 11. Traditional System Solution 1: RDBMS • ETL the data from MongoDB and Hadoop into the RDBMS – MongoDB data must be flattened, schematized, filtered and aggregated – Hadoop data must be filtered and aggregated • Query the data using any SQL-based tool User profiles Access logs Transaction information
  • 12. Traditional System Solution 2: Hadoop • ETL the data from Oracle and MongoDB into Hadoop – MongoDB data must be flattened and schematized • Work with the MapReduce team to write custom code to generate the desired analyses User profiles Access logs Transaction information
  • 13. Traditional System Solution 3: Hive • ETL the data from Oracle and MongoDB into Hadoop – MongoDB data must be flattened and schematized • But HiveQL queries are slow and BI tool support is limited – Marshaling/Coding User profiles Access logs Transaction information
  • 14. What Would Google Do? Distributed File System NoSQL Interactive analysis Batch processing GFS BigTable Dremel MapReduce HDFS HBase ??? Hadoop MapReduce Build Apache Drill to provide a true open source solution to interactive analysis of Big Data
  • 15. Apache Drill Overview • Interactive analysis of Big Data using standard SQL • Fast – Low latency queries – Complement native interfaces and MapReduce/Hive/Pig • Open – Community driven open source project – Under Apache Software Foundation • Modern – Standard ANSI SQL:2003 (select/into) – Nested data support – Schema is optional – Supports RDBMS, Hadoop and NoSQL Interactive queries Data analyst Reporting 100 ms-20 min Data mining Modeling Large ETL 20 min-20 hr MapReduce Hive Pig Apache Drill
  • 16. How Does It Work? Drillbit (Coordinator) SQL Query Parser Query Planner Drillbit (Executor) Drillbit (Executor) Drillbit (Executor) SELECT * FROM oracle.transactions, mongo.users, hdfs.events LIMIT 1 Drill Client Tableau Drill ODBC Driver Micro- Strategy Crystal Reports Driver
  • 17. How Does It Work? • Drillbits run on each node, designed to maximize data locality • Processing is done outside MapReduce paradigm (but possibly within YARN) • Queries can be fed to any Drillbit • Coordination, query planning, optimization, scheduling, and execution are distributed SELECT * FROM oracle.transactions, mongo.users, hdfs.events LIMIT 1
  • 18. Apache Drill: Key Features • Full ANSI SQL:2003 support – Use any SQL-based tool • Nested data support – Flattening is error-prone and often impossible • Schema-less data source support – Schema can change rapidly and may be record-specific • Extensible – DSLs, UDFs – Custom operators (e.g. k-means clustering) – Well-documented data source & file format APIs
  • 19. How Does Impala Fit In? Impala Strengths • Beta currently available • Easy install and setup on top of Cloudera • Faster than Hive on some queries • SQL-like query language Questions • Open Source ‘Lite’ • Lacks RDBMS support • Lacks NoSQL support beyond HBase • Early row materialization increases footprint and reduces performance • Limited file format support • Query results must fit in memory! • Rigid schema is required • No support for nested data • SQL-like (not SQL) Many important features are “coming soon”. Architectural foundation is constrained. No community development.
  • 20. Drill Status: Alpha Available July • Heavy active development by multiple organizations – Contributors from Oracle, IBM Netezza, Informatica, Clustrix, Pentaho • Available – Logical plan syntax and interpreter – Reference interpreter • In progress – SQL interpreter – Storage engine implementations for Accumulo, Cassandra, HBase and various file formats • Significant community momentum – Over 200 people on the Drill mailing list – Over 200 members of the Bay Area Drill User Group – Drill meetups across the US and Europe • Beta: Q3
  • 21. Why Apache Drill Will Be Successful Resources • Contributors have strong backgrounds from companies like Oracle, IBM Netezza, Informatica, Clustrix and Pentaho Community • Development done in the open • Active contributors from multiple companies • Rapidly growing Architecture • Full SQL • New data support • Extensible APIs • Full Columnar Execution • Beyond Hadoop Bottom Line: Apache Drill enables NoSQL and SQL Work Side-by-Side to Tackle Real-time Big Data Needs
  • 22. Me • Allen Day – Principal Data Scientist @ MapR • @allenday • [email protected][email protected]
  • 25. Full SQL (ANSI SQL:2003) • Drill supports SQL (ANSI SQL:2003 standard) – Correlated subqueries, analytic functions, … – SQL-like is not enough • Use any SQL-based tool with Apache Drill – Tableau, Microstrategy, Excel, SAP Crystal Reports, Toad, SQuirreL, … – Standard ODBC and JDBC drivers Drill%Worker Drill%Worker Driver Client Drillbit SQL%Query% Parser Query% Planner Drillbits Drill%ODBC% Driver Tableau MicroStrategy Excel SAP%Crystal% Reports
  • 26. Nested Data • Nested data is becoming prevalent – JSON, BSON, XML, Protocol Buffers, Avro, etc. – The data source may or may not be aware • MongoDB supports nested data natively • A single HBase value could be a JSON document (compound nested type) – Google Dremel’s innovation was efficient columnar storage and querying of nested data • Flattening nested data is error-prone and often impossible – Think about repeated and optional fields at every level… • Apache Drill supports nested data – Extensions to ANSI SQL:2003 enum Gender { MALE, FEMALE } record User { string name; Gender gender; long followers; } { "name": "Homer", "gender": "Male", "followers": 100 children: [ {name: "Bart"}, {name: "Lisa”} ] } JSON Avro
  • 27. Schema is Optional • Many data sources do not have rigid schemas – Schemas change rapidly – Each record may have a different schema, may be sparse/wide • Apache Drill supports querying against unknown schemas – Query any HBase, Cassandra or MongoDB table • User can define the schema or let the system discover it automatically – System of record may already have schema information – No need to manage schema evolution Row Key CF contents CF anchor "com.cnn.www" contents:html = "<html>…" anchor:my.look.ca = "CNN.com" anchor:cnnsi.com = "CNN" "com.foxnews.www" contents:html = "<html>…" anchor:en.wikipedia.org = "Fox News" … … …
  • 28. Flexible and Extensible Architecture • Apache Drill is designed for extensibility • Well-documented APIs and interfaces • Data sources and file formats – Implement a custom scanner to support a new source/format • Query languages – SQL:2003 is the primary language – Implement a custom Parser to support a Domain Specific Language – UDFs • Optimizers – Drill will have a cost-based optimizer – Clear surrounding APIs support easy optimizer exploration • Operators – Custom operators can be implemented (e.g. k-Means clustering) – Operator push-down to data source (RDBMS)

Editor's Notes

  • #3: Emphasize previous experience in my applied domain BFX, difficulty of processing queries effectively (stratified experiments of high-dimensional genomic data).
  • #4: I’m assuming that the typical attendee of this talk is a software developer familiar with and interested in open source technologies. Is already familiar with Hadoop, relational databases, and has heard of or may have some hands-on experience working with some NosQL technologies.
  • #5: Note correspondences between offline operation and its online counterpart
  • #6: Call detail records, as we’ve been hearing about in the news around PRISM recently
  • #10: Hive: compile to MR, Aster: external tables in MPP, Oracle/MySQL: export MR results to RDBMSDrill, Impala, CitusDB: real-time
  • #23: Emphasize previous experience in my applied domain BFX, difficulty of processing queries effectively (stratified experiments of high-dimensional genomic data).