SlideShare a Scribd company logo
1 of 19
Download to read offline
Google Dremel
Vicente Orjales - vorjales@gmail.com
http://www.linkedin.com/in/vorjales
Index
● Introduction.
● Google and Big Data. History.
● Columnar representation of Nested Data.
● Query Execution.
● Google Dremel vs. Map-Reduce.
● Implementations: Google BigQuery and Apache Drill
● Case Studies.
● Demo - BigQuery.
● Appendix (References and Screenshots): SLIDES 16-26
Introduction.What is Dremel?
Google Dremel is a system developed by Google for interactively querying
large data sets.
● Near real time interactive analysis (instead batch processing). SQL-
like query language.
● Nested data (most of unstructured data supported) with a column
storage representation.
● Tree architecture (as in web search): multi-level execution trees for
query processing.
It is widely used inside Google and available for the public as Google BigQuery.
There is also an open source implementation named Apache Drill (formerly
Open Dremel) still in beta phase.
Google and Big Data. History.
● 2003: Google File System. Scalable distributed file system for
data intensive applications built over cheap commodity hardware.
● 2004: Map-Reduce. Programming model for large data sets.
Automatically parallelizes jobs in large cluster of commodity
machines. Inspiration for Hadoop.
● 2006: Bigtable. Distributed storage system for structured data.
Inspiration for NoSQL databases
● 2010: Percolator. Adds transactions and locks at table and row
level.
● 2010: Pregel. Scalable Graph Computing. Mining data from social
graphs.
● 2010: Dremel. Ner real time solution with SQL-like language.
Model for Google BigQuery.
Columnar Representation of Nested Data
All values of a nested field such as A.B.C are stored contiguously. Therefore,
A.B.C can be retrieved without reading A.E, A.B.D, etc.
Columnar storage proved has been successfully used for flat relational data,
but making it work for the nested data within Dremel was one the challenges
in the Dremel design: how to preserve all structural information and be able
to reconstruct records from an arbitrary subset of fields.
Columnar Representation of Nested Data
Columnar Representation of Nested Data
record (r=0) has repeated
Language (r=0) has repeated
Query execution
Multi-level serving tree for executing queries:
● Root Server: receive incoming queries, read metadata from tables, route
query to next level.
● Leaf Server: Communication and access to the data layer for retrieving the
results.
● Each server has an internal execution tree that corresponds with a physical
query execution plan.
Query execution - Example: count()
Google Dremel vs Map-Reduce.
M-R
Batch Processing
Not query language. May
be added with extra
modules (e.g.: Hive in
Hadoop)
Data organization depends
on the source
Hadoop implementation:
Considerable admin effort
Dremel
Interactive query
SQL-like query language
Nested data. Column
oriented data organization.
BigQuery implementation:
Admin transparent to the
user.
Google Dremel vs Map-Reduce.
● Emerged at different times and with different motivations: MR focused on
distributed processing for large data sets, while Gremel driver was ad hoc.
queries in near real time.
● Some authors argue that MR approach is not enough for the new big data
requirements companies are confronting today (real time, complex joins,
ACID...).
● While web companies has moved forward with their own products (e.g.
Google with Dremel or Pregel), most of "conventional" entreprises has
decided to buy instead build, selecting and investing in Hadoop based
products in most of cases (Cloudera, Hortonworks, EMC).
The market tendency is to keep building Hadoop based solutions and enrich
them with extra layers providing better real time support and scalability, while
web companies keep innovating with new products. In this scenario Dremel
and MR may be complementary instead of alternative approachs.
Dremel Implementations
● Google BigQuery
○ It is the externalization of the Dremel product, making it available to
the public as part of the Google Cloud.
○ Data upload: directly to BigQuery or through Google Cloud Storage
(better performance for big large data sets).
○ Data manipulation: web interface / Language API / REST API
● Apache Drill (formerly Open Dremel)
○ Open Source implementation of Google Dremel.
○ Apache License (Apache Incubator). http://incubator.apache.org/drill/
○ Still Beta (Alpha?) Phase
BigQuery - Case studies
● Top advertiser network in Brazil.
● Challenge: process millions of records generated daily
(impressions, click-through, views) to be sure system is targeting
ads effectively.
● Solution: BigQuery to gain real time insights into more than 3
billion ads in 350K blogs and webs.
● Travel agency with bus ticketing in India.
● Challenge: Analyze booking and inventory from systems of
hundreds of bus operators serving more than 10,000 routes.
Hadoop takes much time and requires specialized staff.
● Solution: BigQuery allows to quickly detect improvement
opportunities (e.g.: routes with available seats)
● its customer has 16 bungalow villages in Europe.
● Challenge: Forecast number of vacationers and determine
optimal pricing for accommodations. Limitations of current
systems. Several architectures has failed (MS, SAS, BO, Excel).
● Solution: Their own application based in BigQuery performs
analysis in seconds instead hours and without extra people.
Source: https://developers.google.com/bigquery/case_studies/
BigQuery - Demo - Conclusions
● No any installation or configuration of infrastructure is needed. Everything
is in the Google Cloud.
● Interactive system.
● The amount of processed data depends on the selected columns (column
oriented storage)
● ...and the billing depends on the amount of data we've processed!!
Appendix
Demo Screens
BigQuery - Demo - Project Creation
1. Select existing
project or create a
new one
2. Choose the API
we plan to use, e.g.:
BigQuery API
https://code.google.com/apis/console/
3. Go to BigQuery
section
First of all, we have to create
a new project into the
Google API Console and add
the BigQuery API to that
project.
BigQuery - Demo - Web Console
Data sets
https://bigquery.cloud.google.com/
Query results /
Data set records
Query executed over
the data sets
Query completion
measures
● BigQuery offers a web console to upload
any data set and execute any query.
● Also test data sets are available to start
using the system immediately.
BigQuery - Demo - Loading Data
● It will not allow to create data sets neither upload information until we activate the billing for the
project.
● Two ways for uploading data:
○ Coming directly from our machine
○ Or we can use Google Cloud Storage as intermediary (better performance for big data sets).
○ Data uploaded as CSV or JSON (flat or nested) files.
● Simple example: Upload list of stations from our machine
○ Create a new dataset named "hubway" and create a new table "stations"
○ Table schema: id:integer, name:string, des:string, install:boolean, locked:boolean, temporary:
boolean, lat:float, lng:float
List of steps to
upload data from
local disk
Data source for the example: http://hubwaydatachallenge.
org/submission/leaderboard/
END

More Related Content

What's hot

System Design Interviews.pdf
System Design Interviews.pdfSystem Design Interviews.pdf
System Design Interviews.pdfRaviTandon11
 
(BDT303) Running Spark and Presto on the Netflix Big Data Platform
(BDT303) Running Spark and Presto on the Netflix Big Data Platform(BDT303) Running Spark and Presto on the Netflix Big Data Platform
(BDT303) Running Spark and Presto on the Netflix Big Data PlatformAmazon Web Services
 
Dremel: interactive analysis of web-scale datasets
Dremel: interactive analysis of web-scale datasetsDremel: interactive analysis of web-scale datasets
Dremel: interactive analysis of web-scale datasetsHung-yu Lin
 
CoC23_ Looking at the New Features of Apache NiFi
CoC23_ Looking at the New Features of Apache NiFiCoC23_ Looking at the New Features of Apache NiFi
CoC23_ Looking at the New Features of Apache NiFiTimothy Spann
 
Dremel: Interactive Analysis of Web-Scale Datasets
Dremel: Interactive Analysis of Web-Scale Datasets Dremel: Interactive Analysis of Web-Scale Datasets
Dremel: Interactive Analysis of Web-Scale Datasets robertlz
 
YARN Ready: Integrating to YARN with Tez
YARN Ready: Integrating to YARN with Tez YARN Ready: Integrating to YARN with Tez
YARN Ready: Integrating to YARN with Tez Hortonworks
 
Explore your prometheus data in grafana - Promcon 2018
Explore your prometheus data in grafana - Promcon 2018Explore your prometheus data in grafana - Promcon 2018
Explore your prometheus data in grafana - Promcon 2018Grafana Labs
 
Delta from a Data Engineer's Perspective
Delta from a Data Engineer's PerspectiveDelta from a Data Engineer's Perspective
Delta from a Data Engineer's PerspectiveDatabricks
 
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...HostedbyConfluent
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixJustin Basilico
 
Drilling into Data with Apache Drill
Drilling into Data with Apache DrillDrilling into Data with Apache Drill
Drilling into Data with Apache DrillDataWorks Summit
 
High-speed Database Throughput Using Apache Arrow Flight SQL
High-speed Database Throughput Using Apache Arrow Flight SQLHigh-speed Database Throughput Using Apache Arrow Flight SQL
High-speed Database Throughput Using Apache Arrow Flight SQLScyllaDB
 
5 Factors When Selecting a High Performance, Low Latency Database
5 Factors When Selecting a High Performance, Low Latency Database5 Factors When Selecting a High Performance, Low Latency Database
5 Factors When Selecting a High Performance, Low Latency DatabaseScyllaDB
 
Kafka Practices @ Uber - Seattle Apache Kafka meetup
Kafka Practices @ Uber - Seattle Apache Kafka meetupKafka Practices @ Uber - Seattle Apache Kafka meetup
Kafka Practices @ Uber - Seattle Apache Kafka meetupMingmin Chen
 
Recommendation at Netflix Scale
Recommendation at Netflix ScaleRecommendation at Netflix Scale
Recommendation at Netflix ScaleJustin Basilico
 
Hadoop World 2011: Advanced HBase Schema Design - Lars George, Cloudera
Hadoop World 2011: Advanced HBase Schema Design - Lars George, ClouderaHadoop World 2011: Advanced HBase Schema Design - Lars George, Cloudera
Hadoop World 2011: Advanced HBase Schema Design - Lars George, ClouderaCloudera, Inc.
 
Apache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationApache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationSease
 

What's hot (20)

System Design Interviews.pdf
System Design Interviews.pdfSystem Design Interviews.pdf
System Design Interviews.pdf
 
(BDT303) Running Spark and Presto on the Netflix Big Data Platform
(BDT303) Running Spark and Presto on the Netflix Big Data Platform(BDT303) Running Spark and Presto on the Netflix Big Data Platform
(BDT303) Running Spark and Presto on the Netflix Big Data Platform
 
Dremel: interactive analysis of web-scale datasets
Dremel: interactive analysis of web-scale datasetsDremel: interactive analysis of web-scale datasets
Dremel: interactive analysis of web-scale datasets
 
CoC23_ Looking at the New Features of Apache NiFi
CoC23_ Looking at the New Features of Apache NiFiCoC23_ Looking at the New Features of Apache NiFi
CoC23_ Looking at the New Features of Apache NiFi
 
Dremel: Interactive Analysis of Web-Scale Datasets
Dremel: Interactive Analysis of Web-Scale Datasets Dremel: Interactive Analysis of Web-Scale Datasets
Dremel: Interactive Analysis of Web-Scale Datasets
 
Redshift VS BigQuery
Redshift VS BigQueryRedshift VS BigQuery
Redshift VS BigQuery
 
YARN Ready: Integrating to YARN with Tez
YARN Ready: Integrating to YARN with Tez YARN Ready: Integrating to YARN with Tez
YARN Ready: Integrating to YARN with Tez
 
Explore your prometheus data in grafana - Promcon 2018
Explore your prometheus data in grafana - Promcon 2018Explore your prometheus data in grafana - Promcon 2018
Explore your prometheus data in grafana - Promcon 2018
 
Delta from a Data Engineer's Perspective
Delta from a Data Engineer's PerspectiveDelta from a Data Engineer's Perspective
Delta from a Data Engineer's Perspective
 
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...
Don’t Forget About Your Past—Optimizing Apache Druid Performance With Neil Bu...
 
Druid deep dive
Druid deep diveDruid deep dive
Druid deep dive
 
Lessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at NetflixLessons Learned from Building Machine Learning Software at Netflix
Lessons Learned from Building Machine Learning Software at Netflix
 
Drilling into Data with Apache Drill
Drilling into Data with Apache DrillDrilling into Data with Apache Drill
Drilling into Data with Apache Drill
 
High-speed Database Throughput Using Apache Arrow Flight SQL
High-speed Database Throughput Using Apache Arrow Flight SQLHigh-speed Database Throughput Using Apache Arrow Flight SQL
High-speed Database Throughput Using Apache Arrow Flight SQL
 
5 Factors When Selecting a High Performance, Low Latency Database
5 Factors When Selecting a High Performance, Low Latency Database5 Factors When Selecting a High Performance, Low Latency Database
5 Factors When Selecting a High Performance, Low Latency Database
 
Introduction to Apache Kafka
Introduction to Apache KafkaIntroduction to Apache Kafka
Introduction to Apache Kafka
 
Kafka Practices @ Uber - Seattle Apache Kafka meetup
Kafka Practices @ Uber - Seattle Apache Kafka meetupKafka Practices @ Uber - Seattle Apache Kafka meetup
Kafka Practices @ Uber - Seattle Apache Kafka meetup
 
Recommendation at Netflix Scale
Recommendation at Netflix ScaleRecommendation at Netflix Scale
Recommendation at Netflix Scale
 
Hadoop World 2011: Advanced HBase Schema Design - Lars George, Cloudera
Hadoop World 2011: Advanced HBase Schema Design - Lars George, ClouderaHadoop World 2011: Advanced HBase Schema Design - Lars George, Cloudera
Hadoop World 2011: Advanced HBase Schema Design - Lars George, Cloudera
 
Apache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationApache Lucene/Solr Document Classification
Apache Lucene/Solr Document Classification
 

Similar to Google Dremel. Concept and Implementations.

Google Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacksGoogle Cloud lightning talk @MHacks
Google Cloud lightning talk @MHackswesley chun
 
Exploring BigData with Google BigQuery
Exploring BigData with Google BigQueryExploring BigData with Google BigQuery
Exploring BigData with Google BigQueryDharmesh Vaya
 
Machine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud PlatformMachine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud PlatformMatthias Feys
 
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...Alluxio, Inc.
 
Google App Engine 7 9-14
Google App Engine 7 9-14Google App Engine 7 9-14
Google App Engine 7 9-14Tony Frame
 
Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)wesley chun
 
A fresh look at Google’s Cloud by Mandy Waite
A fresh look at Google’s Cloud by Mandy Waite A fresh look at Google’s Cloud by Mandy Waite
A fresh look at Google’s Cloud by Mandy Waite Codemotion
 
Unlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWSUnlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWSAmazon Web Services
 
Hd insight overview
Hd insight overviewHd insight overview
Hd insight overviewvhrocca
 
project--2 nd review_2
project--2 nd review_2project--2 nd review_2
project--2 nd review_2Aswini Ashu
 
project--2 nd review_2
project--2 nd review_2project--2 nd review_2
project--2 nd review_2aswini pilli
 
Executive Intro to BigQuery
Executive Intro to BigQueryExecutive Intro to BigQuery
Executive Intro to BigQueryWilliam M. Cohee
 
Google Cloud Platform for Data Science teams
Google Cloud Platform for Data Science teamsGoogle Cloud Platform for Data Science teams
Google Cloud Platform for Data Science teamsBarton Rhodes
 
[SSA] 04.sql on hadoop(2014.02.05)
[SSA] 04.sql on hadoop(2014.02.05)[SSA] 04.sql on hadoop(2014.02.05)
[SSA] 04.sql on hadoop(2014.02.05)Steve Min
 
Fundamental question and answer in cloud computing quiz by animesh chaturvedi
Fundamental question and answer in cloud computing quiz by animesh chaturvediFundamental question and answer in cloud computing quiz by animesh chaturvedi
Fundamental question and answer in cloud computing quiz by animesh chaturvediAnimesh Chaturvedi
 
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)Ido Green
 
Google not all clouds are created equal - sap sapphire 2014 (1)
Google not all clouds are created equal - sap sapphire 2014 (1)Google not all clouds are created equal - sap sapphire 2014 (1)
Google not all clouds are created equal - sap sapphire 2014 (1)David Torres
 
Gluent Extending Enterprise Applications with Hadoop
Gluent Extending Enterprise Applications with HadoopGluent Extending Enterprise Applications with Hadoop
Gluent Extending Enterprise Applications with Hadoopgluent.
 

Similar to Google Dremel. Concept and Implementations. (20)

Google Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacksGoogle Cloud lightning talk @MHacks
Google Cloud lightning talk @MHacks
 
Exploring BigData with Google BigQuery
Exploring BigData with Google BigQueryExploring BigData with Google BigQuery
Exploring BigData with Google BigQuery
 
GCP Slide.pptx
GCP Slide.pptxGCP Slide.pptx
GCP Slide.pptx
 
Machine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud PlatformMachine learning at scale with Google Cloud Platform
Machine learning at scale with Google Cloud Platform
 
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...
Integrating Google Cloud Dataproc with Alluxio for faster performance in the ...
 
Big Data & Hadoop
Big Data & HadoopBig Data & Hadoop
Big Data & Hadoop
 
Google App Engine 7 9-14
Google App Engine 7 9-14Google App Engine 7 9-14
Google App Engine 7 9-14
 
Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)Google Cloud @ Hackathons (2020)
Google Cloud @ Hackathons (2020)
 
A fresh look at Google’s Cloud by Mandy Waite
A fresh look at Google’s Cloud by Mandy Waite A fresh look at Google’s Cloud by Mandy Waite
A fresh look at Google’s Cloud by Mandy Waite
 
Unlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWSUnlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWS
 
Hd insight overview
Hd insight overviewHd insight overview
Hd insight overview
 
project--2 nd review_2
project--2 nd review_2project--2 nd review_2
project--2 nd review_2
 
project--2 nd review_2
project--2 nd review_2project--2 nd review_2
project--2 nd review_2
 
Executive Intro to BigQuery
Executive Intro to BigQueryExecutive Intro to BigQuery
Executive Intro to BigQuery
 
Google Cloud Platform for Data Science teams
Google Cloud Platform for Data Science teamsGoogle Cloud Platform for Data Science teams
Google Cloud Platform for Data Science teams
 
[SSA] 04.sql on hadoop(2014.02.05)
[SSA] 04.sql on hadoop(2014.02.05)[SSA] 04.sql on hadoop(2014.02.05)
[SSA] 04.sql on hadoop(2014.02.05)
 
Fundamental question and answer in cloud computing quiz by animesh chaturvedi
Fundamental question and answer in cloud computing quiz by animesh chaturvediFundamental question and answer in cloud computing quiz by animesh chaturvedi
Fundamental question and answer in cloud computing quiz by animesh chaturvedi
 
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
Scale with a smile with Google Cloud Platform At DevConTLV (June 2014)
 
Google not all clouds are created equal - sap sapphire 2014 (1)
Google not all clouds are created equal - sap sapphire 2014 (1)Google not all clouds are created equal - sap sapphire 2014 (1)
Google not all clouds are created equal - sap sapphire 2014 (1)
 
Gluent Extending Enterprise Applications with Hadoop
Gluent Extending Enterprise Applications with HadoopGluent Extending Enterprise Applications with Hadoop
Gluent Extending Enterprise Applications with Hadoop
 

Recently uploaded

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Recently uploaded (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Google Dremel. Concept and Implementations.

  • 1. Google Dremel Vicente Orjales - vorjales@gmail.com http://www.linkedin.com/in/vorjales
  • 2. Index ● Introduction. ● Google and Big Data. History. ● Columnar representation of Nested Data. ● Query Execution. ● Google Dremel vs. Map-Reduce. ● Implementations: Google BigQuery and Apache Drill ● Case Studies. ● Demo - BigQuery. ● Appendix (References and Screenshots): SLIDES 16-26
  • 3. Introduction.What is Dremel? Google Dremel is a system developed by Google for interactively querying large data sets. ● Near real time interactive analysis (instead batch processing). SQL- like query language. ● Nested data (most of unstructured data supported) with a column storage representation. ● Tree architecture (as in web search): multi-level execution trees for query processing. It is widely used inside Google and available for the public as Google BigQuery. There is also an open source implementation named Apache Drill (formerly Open Dremel) still in beta phase.
  • 4. Google and Big Data. History. ● 2003: Google File System. Scalable distributed file system for data intensive applications built over cheap commodity hardware. ● 2004: Map-Reduce. Programming model for large data sets. Automatically parallelizes jobs in large cluster of commodity machines. Inspiration for Hadoop. ● 2006: Bigtable. Distributed storage system for structured data. Inspiration for NoSQL databases ● 2010: Percolator. Adds transactions and locks at table and row level. ● 2010: Pregel. Scalable Graph Computing. Mining data from social graphs. ● 2010: Dremel. Ner real time solution with SQL-like language. Model for Google BigQuery.
  • 5. Columnar Representation of Nested Data All values of a nested field such as A.B.C are stored contiguously. Therefore, A.B.C can be retrieved without reading A.E, A.B.D, etc. Columnar storage proved has been successfully used for flat relational data, but making it work for the nested data within Dremel was one the challenges in the Dremel design: how to preserve all structural information and be able to reconstruct records from an arbitrary subset of fields.
  • 7. Columnar Representation of Nested Data record (r=0) has repeated Language (r=0) has repeated
  • 8. Query execution Multi-level serving tree for executing queries: ● Root Server: receive incoming queries, read metadata from tables, route query to next level. ● Leaf Server: Communication and access to the data layer for retrieving the results. ● Each server has an internal execution tree that corresponds with a physical query execution plan.
  • 9. Query execution - Example: count()
  • 10. Google Dremel vs Map-Reduce. M-R Batch Processing Not query language. May be added with extra modules (e.g.: Hive in Hadoop) Data organization depends on the source Hadoop implementation: Considerable admin effort Dremel Interactive query SQL-like query language Nested data. Column oriented data organization. BigQuery implementation: Admin transparent to the user.
  • 11. Google Dremel vs Map-Reduce. ● Emerged at different times and with different motivations: MR focused on distributed processing for large data sets, while Gremel driver was ad hoc. queries in near real time. ● Some authors argue that MR approach is not enough for the new big data requirements companies are confronting today (real time, complex joins, ACID...). ● While web companies has moved forward with their own products (e.g. Google with Dremel or Pregel), most of "conventional" entreprises has decided to buy instead build, selecting and investing in Hadoop based products in most of cases (Cloudera, Hortonworks, EMC). The market tendency is to keep building Hadoop based solutions and enrich them with extra layers providing better real time support and scalability, while web companies keep innovating with new products. In this scenario Dremel and MR may be complementary instead of alternative approachs.
  • 12. Dremel Implementations ● Google BigQuery ○ It is the externalization of the Dremel product, making it available to the public as part of the Google Cloud. ○ Data upload: directly to BigQuery or through Google Cloud Storage (better performance for big large data sets). ○ Data manipulation: web interface / Language API / REST API ● Apache Drill (formerly Open Dremel) ○ Open Source implementation of Google Dremel. ○ Apache License (Apache Incubator). http://incubator.apache.org/drill/ ○ Still Beta (Alpha?) Phase
  • 13. BigQuery - Case studies ● Top advertiser network in Brazil. ● Challenge: process millions of records generated daily (impressions, click-through, views) to be sure system is targeting ads effectively. ● Solution: BigQuery to gain real time insights into more than 3 billion ads in 350K blogs and webs. ● Travel agency with bus ticketing in India. ● Challenge: Analyze booking and inventory from systems of hundreds of bus operators serving more than 10,000 routes. Hadoop takes much time and requires specialized staff. ● Solution: BigQuery allows to quickly detect improvement opportunities (e.g.: routes with available seats) ● its customer has 16 bungalow villages in Europe. ● Challenge: Forecast number of vacationers and determine optimal pricing for accommodations. Limitations of current systems. Several architectures has failed (MS, SAS, BO, Excel). ● Solution: Their own application based in BigQuery performs analysis in seconds instead hours and without extra people. Source: https://developers.google.com/bigquery/case_studies/
  • 14. BigQuery - Demo - Conclusions ● No any installation or configuration of infrastructure is needed. Everything is in the Google Cloud. ● Interactive system. ● The amount of processed data depends on the selected columns (column oriented storage) ● ...and the billing depends on the amount of data we've processed!!
  • 16. BigQuery - Demo - Project Creation 1. Select existing project or create a new one 2. Choose the API we plan to use, e.g.: BigQuery API https://code.google.com/apis/console/ 3. Go to BigQuery section First of all, we have to create a new project into the Google API Console and add the BigQuery API to that project.
  • 17. BigQuery - Demo - Web Console Data sets https://bigquery.cloud.google.com/ Query results / Data set records Query executed over the data sets Query completion measures ● BigQuery offers a web console to upload any data set and execute any query. ● Also test data sets are available to start using the system immediately.
  • 18. BigQuery - Demo - Loading Data ● It will not allow to create data sets neither upload information until we activate the billing for the project. ● Two ways for uploading data: ○ Coming directly from our machine ○ Or we can use Google Cloud Storage as intermediary (better performance for big data sets). ○ Data uploaded as CSV or JSON (flat or nested) files. ● Simple example: Upload list of stations from our machine ○ Create a new dataset named "hubway" and create a new table "stations" ○ Table schema: id:integer, name:string, des:string, install:boolean, locked:boolean, temporary: boolean, lat:float, lng:float List of steps to upload data from local disk Data source for the example: http://hubwaydatachallenge. org/submission/leaderboard/
  • 19. END