SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Splout SQL




A web-latency SQL view for Hadoop

          http://sploutsql.com
Who am I?
●   Pere Ferrera Bertran, Barcelona @ferrerabertran
●   8 years “backender” @ BCN startups.
●   “The shy guy” (aka CTO) @ Datasalt
    ●   Hadoop consulting: PeerIndex, Trovit, BBVA
    ●   Open-source low-level API for Hadoop (Pangool)
         –   Accepted paper: ICDM 2012
●   Jazz pianist in the free time
3.5 Big Data Challenges




         Moving Big Data seamlessly is also a challenge!
Hadoop
●   Mainstream Big Data Storage & Batch Processing
    ●   Open-source.
    ●   Large community.
    ●   Many higher-level tools.
    ●   Many companies around.
    ●   It scales.
●   Bad things people say about it:
    ●   Slow
         –   but we now have MapR!
    ●   Hard to program
         –   but we have Hive, Pig or Pangool!
         –   and even things like Datameer!
    ●   Buggy
         –   but we have a stable 1.0 and supporting companies like Cloudera!
●   Getting better and better! - YARN (2.0)
The Batch Revolution
●   Batch is not the only kind of processing
    ●   But it covers many cases very well.
         All our consulting clients use it.
         –
●   Hadoop makes it transparently scalable!
    ●   I see this as a revolution.
●   Advantages: Simple, resistant to programming errors.
●   Disadvantages: Long-running processes, results updated in
    hours time.
    ●   My advise: Can you cope with that? Then use batch processing.
●   Ted Dunning & Nathan Marz are good “gurus” to hear talk about
    this.
The problem (we want to solve)
●   Big Data usually means having Big Data as input
●   A lot of emphasis nowadays in “analytics”, where
    output is usually small
    ●    Small, targeted reports.




        “I will eat all this so that almost nothing
        remains out of it... “
The problem (we want to solve)
●
    But the problem is that sometimes the output is also Big Data!
    ●   Recommendations
    ●   Aggregated stats
    ●
        Listings




●
    Recurring problem: Take your “Big Data Output” and “put it” somewhere
    ●   NoSQL
    ●   Search engine
●   For being able to answer real-time queries, low-latency lookups over it.
    ●   Websites, mobile apps.
    ●   A lot of people using the app concurrently.
    ●   Read-only!
Current options
●   Hadoop-generated files are not (directly) queriable
    ●   They lack appropriate indexes (e.g. b-tree) for making
        queries really fast
●   We can “send” the result of a Hadoop process directly to a
    database...


●   Problems:
         –   Latency (random writing / rebalancing / index update)
         –   Affecting query service (database may slow down while
             updating and serving at the same time)
         –   Incrementality (may lead to inconsistency of results)
Meet Splout SQL!
●   Store generation decoupled
    from store serving
    ●   Data is always optimally indexed.
    ●   Zero fragmentation.


●   “Atomic” deployment
    ●   New versions replaced
        without affecting query serving.
    ●   All data replaced at once.
    ●   Flexible.


●   100% SQL
    ●   Rich query language
    ●   Real-time aggregations over data
    ●   Not everything needs to be pre-computed!
Details
●   A very old idea which everyone implemented by hand at some
    point.
    ●   Horizontal partitioning.




●
    Generates many database files (partitions) and distributes them in
    a cluster.
    ●   Replication, fail-over.
●   Hadoop (Pangool) for generating the data structures.
    ●   Including all b-trees needed!
●   Database files: SQLite files.
Did you say SQLite?
SQLite
●   Fast (10% slower than MySQL)
●   Simple.
●   Probably the best embedded SQL out there.
    ●   Embedding it makes it easy to use it inside Hadoop.
●   Still, it lacks some features.
    ●   Not the database one would choose for an enterprise app.
●   But Splout SQL is essentially read-only!
    ●   So we don't need that many features.


     Splout != SQLite. In the future we might integrate it with
                    PostgreSQL, for instance.
Making Splout SQL fly




●   Because database is created off-line, things like insertion order can be controlled.
    ●   Hadoop sorts the data for you.
●   So you insert all your data in the appropriated order for making queries fast.
    ●   Even if disk is used, only one seek will be needed (because of data locality).


        Real-time GROUP BY’s with avg. 2000 records of 50 bytes in average 40
                     milliseconds in a m1.small EC2 machine.
Recap
●
    We see a recurring problem when the output is also Big Data.
    ●   Moving data between (batch) processing and serving.
●   Splout SQL solves it and adds full SQL.


                           “A web-latency SQL view for Hadoop”

●
    Web-latency: unlike data warehousing / analytics
●   SQL: unlike key/value and other NoSQL's
●   View: simply make files queriable → read-only
●
    For Hadoop: for Big Data output of batch processing


                           Check it out and play with it!
                              http://sploutsql.com

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

Kürzlich hochgeladen (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Empfohlen

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Splout SQL: A web-latency SQL view for Hadoop

  • 1. Splout SQL A web-latency SQL view for Hadoop http://sploutsql.com
  • 2. Who am I? ● Pere Ferrera Bertran, Barcelona @ferrerabertran ● 8 years “backender” @ BCN startups. ● “The shy guy” (aka CTO) @ Datasalt ● Hadoop consulting: PeerIndex, Trovit, BBVA ● Open-source low-level API for Hadoop (Pangool) – Accepted paper: ICDM 2012 ● Jazz pianist in the free time
  • 3. 3.5 Big Data Challenges Moving Big Data seamlessly is also a challenge!
  • 4. Hadoop ● Mainstream Big Data Storage & Batch Processing ● Open-source. ● Large community. ● Many higher-level tools. ● Many companies around. ● It scales. ● Bad things people say about it: ● Slow – but we now have MapR! ● Hard to program – but we have Hive, Pig or Pangool! – and even things like Datameer! ● Buggy – but we have a stable 1.0 and supporting companies like Cloudera! ● Getting better and better! - YARN (2.0)
  • 5. The Batch Revolution ● Batch is not the only kind of processing ● But it covers many cases very well. All our consulting clients use it. – ● Hadoop makes it transparently scalable! ● I see this as a revolution. ● Advantages: Simple, resistant to programming errors. ● Disadvantages: Long-running processes, results updated in hours time. ● My advise: Can you cope with that? Then use batch processing. ● Ted Dunning & Nathan Marz are good “gurus” to hear talk about this.
  • 6. The problem (we want to solve) ● Big Data usually means having Big Data as input ● A lot of emphasis nowadays in “analytics”, where output is usually small ● Small, targeted reports. “I will eat all this so that almost nothing remains out of it... “
  • 7. The problem (we want to solve) ● But the problem is that sometimes the output is also Big Data! ● Recommendations ● Aggregated stats ● Listings ● Recurring problem: Take your “Big Data Output” and “put it” somewhere ● NoSQL ● Search engine ● For being able to answer real-time queries, low-latency lookups over it. ● Websites, mobile apps. ● A lot of people using the app concurrently. ● Read-only!
  • 8. Current options ● Hadoop-generated files are not (directly) queriable ● They lack appropriate indexes (e.g. b-tree) for making queries really fast ● We can “send” the result of a Hadoop process directly to a database... ● Problems: – Latency (random writing / rebalancing / index update) – Affecting query service (database may slow down while updating and serving at the same time) – Incrementality (may lead to inconsistency of results)
  • 9. Meet Splout SQL! ● Store generation decoupled from store serving ● Data is always optimally indexed. ● Zero fragmentation. ● “Atomic” deployment ● New versions replaced without affecting query serving. ● All data replaced at once. ● Flexible. ● 100% SQL ● Rich query language ● Real-time aggregations over data ● Not everything needs to be pre-computed!
  • 10. Details ● A very old idea which everyone implemented by hand at some point. ● Horizontal partitioning. ● Generates many database files (partitions) and distributes them in a cluster. ● Replication, fail-over. ● Hadoop (Pangool) for generating the data structures. ● Including all b-trees needed! ● Database files: SQLite files.
  • 11. Did you say SQLite?
  • 12. SQLite ● Fast (10% slower than MySQL) ● Simple. ● Probably the best embedded SQL out there. ● Embedding it makes it easy to use it inside Hadoop. ● Still, it lacks some features. ● Not the database one would choose for an enterprise app. ● But Splout SQL is essentially read-only! ● So we don't need that many features. Splout != SQLite. In the future we might integrate it with PostgreSQL, for instance.
  • 13. Making Splout SQL fly ● Because database is created off-line, things like insertion order can be controlled. ● Hadoop sorts the data for you. ● So you insert all your data in the appropriated order for making queries fast. ● Even if disk is used, only one seek will be needed (because of data locality). Real-time GROUP BY’s with avg. 2000 records of 50 bytes in average 40 milliseconds in a m1.small EC2 machine.
  • 14. Recap ● We see a recurring problem when the output is also Big Data. ● Moving data between (batch) processing and serving. ● Splout SQL solves it and adds full SQL. “A web-latency SQL view for Hadoop” ● Web-latency: unlike data warehousing / analytics ● SQL: unlike key/value and other NoSQL's ● View: simply make files queriable → read-only ● For Hadoop: for Big Data output of batch processing Check it out and play with it! http://sploutsql.com