PolyBase Query Hadoop with ease Sahaj Saini Program Manager, Microsoft.

Slides:



Advertisements
Similar presentations
Indexing HDFS Data in PDW: Splitting the data from index 1 Vinitha Gankidi #, Nikhil Teletia *, Jignesh M. Patel #, Alan Halverson *, David J. DeWitt *
Advertisements

David J. DeWitt Microsoft Jim Gray Systems Lab Madison, Wisconsin graysystemslab.com.
FAST FORWARD WITH MICROSOFT BIG DATA Vinoo Srinivas M Solutions Specialist Windows Azure (Hadoop, HPC, Media)
Observation Pattern Theory Hypothesis What will happen? How can we make it happen? Predictive Analytics Prescriptive Analytics What happened? Why.
Running Hadoop-as-a-Service in the Cloud
Microsoft Ignite /16/2017 5:47 PM
Overview of Hadoop for Data Mining Federal Big Data Group confidential Mark Silverman Treeminer, Inc. 155 Gibbs Street Suite 514 Rockville, Maryland
Putting the Sting in Hive Page 1 Alan F.
Hadoop tutorials. Todays agenda Hadoop Introduction and Architecture Hadoop Distributed File System MapReduce Spark 2.
PARALLEL DBMS VS MAP REDUCE “MapReduce and parallel DBMSs: friends or foes?” Stonebraker, Daniel Abadi, David J Dewitt et al.
Business Intelligence Overview Marc Schöni Technical Solution Professional | Business Intelligence Microsoft Switzerland.
SQL on Hadoop. Todays agenda Introduction Hive – the first SQL approach Data ingestion and data formats Impala – MPP SQL.
Hive: A data warehouse on Hadoop Based on Facebook Team’s paperon Facebook Team’s paper 8/18/20151.
This presentation was scheduled to be delivered by Brian Mitchell, Lead Architect, Microsoft Big Data COE Follow him Contact him.
Analytics Map Reduce Query Insight Hive Pig Hadoop SQL Map Reduce Business Intelligence Predictive Operational Interactive Visualization Exploratory.
Committed to Deliver….  We are Leaders in Hadoop Ecosystem.  We support, maintain, monitor and provide services over Hadoop whether you run apache Hadoop,
Using the WDK for Windows Logo and Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
MapReduce April 2012 Extract from various presentations: Sudarshan, Chungnam, Teradata Aster, …
Hadoop Basics -Venkat Cherukupalli. What is Hadoop? Open Source Distributed processing Large data sets across clusters Commodity, shared-nothing servers.
Introduction to Hadoop and HDFS
Contents HADOOP INTRODUCTION AND CONCEPTUAL OVERVIEW TERMINOLOGY QUICK TOUR OF CLOUDERA MANAGER.
Database Management 9. course. Execution of queries.
Hive Facebook 2009.
MapReduce High-Level Languages Spring 2014 WPI, Mohamed Eltabakh 1.
An Introduction to HDInsight June 27 th,
Indexing HDFS Data in PDW: Splitting the data from the index VLDB2014 WSIC、Microsoft Calvin
Grid Computing at Yahoo! Sameer Paranjpye Mahadev Konar Yahoo!
Data and SQL on Hadoop. Cloudera Image for hands-on Installation instruction – 2.
Modern Data Warehouse: Microsoft APS Alain Dormehl June 2015.
Copyright © 2015, SAS Institute Inc. All rights reserved. THE ELEPHANT IN THE ROOM SAS & HADOOP.
IBM Research ® © 2007 IBM Corporation Introduction to Map-Reduce and Join Processing.
Sponsorzy strategiczni Sponsorzy srebrni. PolyBase – data beyond tables Hubert Kobierzewski.
Breaking points of traditional approach What if you could handle big data?
PolyBase in SQL Server 16 David J. DeWitt Rimma V. Nehme
Scalable data access with Impala Zbigniew Baranowski Maciej Grzybek Daniel Lanza Garcia Kacper Surdy.
Please note that the session topic has changed
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
PolyBase Query Hadoop with ease Sahaj Saini SQL Server, Microsoft.
Harnessing Big Data with Hadoop Dipti Sangani; Madhu Reddy DBI210.
MSBIC Hadoop Series Hadoop & Microsoft BI Bryan Smith
SQL Server Evolution New innovations Jen Underwood Sr. Program Manager of Business Intelligence & Analytics Microsoft George Walters Sr. Technical Solutions.
AZ PASS User Group Azure Data Factory Overview Josh Sivey, Solution Partner October
An Introduction To Big Data For The SQL Server DBA.
Microsoft Power BI Stack
Apache Hadoop on Windows Azure Avkash Chauhan
Redmond Protocols Plugfest 2016 Casey Karst PolyBase in SQL Server 2016.
PolyBase overview Speaker Name
Data Platform and Analytics Foundational Training
PolyBase: T-SQL Reaching Beyond the Database
Please Visit Sponsors and Enter Raffles
Microsoft /2/2018 3:42 PM BRK3129 Query Big Data using the Expanded T-SQL footprint with PolyBase in SQL Server 2016 Casey Karst Program Manager.
The Model Architecture with SQL and Polybase
Data Virtualization Tutorial… Semijoin Optimization
Hadoopla: Microsoft and the Hadoop Ecosystem
Polybase Didn’t That Go Out in the 70’s Stan Geiger.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
A developers guide to Azure SQL Data Warehouse
MapReduce Computing Paradigm Basics Fall 2013 Elke A. Rundensteiner
07 | Analyzing Big Data with Excel
Analytics for Apps: Landing and Loading Data into SQL Data Warehouse
SQL Server PolyBase and Dell EMC Isilon storage
Server & Tools Business
A developers guide to Azure SQL Data Warehouse
Henk van der Valk Oct.15, 2016 Level: Beginner
Introduction to Apache
Managing batch processing Transient Azure SQL Warehouse Resource
Inside SQL Server Polybase
Copyright © JanBask Training. All rights reserved Get Started with Hadoop Hive HiveQL Languages.
SQL Server 2019 Bringing Apache Spark to SQL Server
Presentation transcript:

PolyBase Query Hadoop with ease Sahaj Saini Program Manager, Microsoft

Agenda Why PolyBase? What is it and why customers need it? How it works Demo Q&A

Why?

4 All the interest in Big Data Increased number and variety of data sources that generate large quantities of data. Realization that data is “too valuable” to delete. Dramatic decline in the cost of hardware, especially storage. $

5 The Hadoop Ecosystem

Initially MapReduce for insights from HDFS-resident data Recently SQL-like data warehouse technologies on HDFS e.g. Hive, Impala, HAWQ, Spark/Shark Hadoop Evolution

7 7 What if you use RDBMS and Hadoop?

What is PolyBase?

9 Big Picture Provides a T-SQL language extension for combining data from both worlds

10 PolyBase journey … …… 2016 … 2014 PolyBase in SQL Server PDW V2 (Analytics Platform System) PolyBase in SQL Server 2016 CTP2 CTP3 PolyBase in Azure SQL Data Warehouse General Availability

11 PolyBase in SQL Server 2016

12 Customer Example: Auto Insurance Usage-based Insurance Combining non-relational sensor data from cars (kept in Hadoop) with structured customer data (kept in APS) Ability to adjust insurance policies based on driver behavior ‘ Pay-as-you-drive’ - Driver Discount & Policy adjustment Status - In production

13 PolyBase Use Cases

How does PolyBase work?

15 Step 1: Setup a Hadoop Cluster Hortonworks or Cloudera Distributions Linux or Windows On premise or in Azure Namenode (HDFS) File System Hadoop cluster

16 Or Azure Storage Account Azure Storage Blob (ASB) exposes an HDFS layer PolyBase reads and writes from ASB using Hadoop APIs

Step 2: Install SQL Server 17 Select PolyBase feature Adds two new services - PolyBase Engine - PolyBase Data Movement Service Pre-requisite: download and install JRE

1. Install multiple SQL Server instances with PolyBase. Step 3: Scale-out 18 Head Node PolyBase Engine PolyBase DMS PolyBase Engine 2. Choose one as Head Node. 3. Configure remaining as Compute Nodes a.run stored procedure b.shutdown PolyBase Engine c.restart PolyBase DMS

After Step 3 19 PolyBase Group for Scale-out Computation Head node contains the SQL Server instance to which PolyBase queries are submitted Compute nodes are used for scale- out query processing on external data Compute Nodes

Step 4 - Choose Hadoop flavor Latest Supported distributions Cloudera CDH 5.5 on Linux Hortonworks 2.1, 2.2, 2.3 on Linux Hortonworks 2.0, 2.2, 2.3 on Windows Server Azure blob storage (ASB) What happens under the covers? Loading the right client jars to connect to Hadoop -- different numbers map to various Hadoop flavors -- example: value 5 for HDP 2.0 on Linux, value 6 for CHD on Linux, value 7 for HDP 2.1/2.2/2.3 on Linux/Windows or ASB 7

21 After Step 4 Namenode (HDFS) File System

PolyBase Demo SQL Server 2016

PolyBase Design

24 Under-the-hood Exploiting compute resources of Hadoop Clusters with push-down computation

Uses Hadoop RecordReaders/RecordWriters to read/write standard HDFS file types HDFS bridge in DMS

26 Under-the-hood Exploiting compute resources of Hadoop Clusters with push-down computation

27 Namenode (HDFS) Hadoop Cluster File System Data moves between clusters in parallel SQL16

28 Under-the-hood Exploiting compute resources of Hadoop Clusters with push-down computation

Creating External Tables Once per Hadoop Cluster Once per File Format HDFS File Path

Creating External Tables (secure Hadoop) Once per Hadoop User HDFS File Path Once per File Format Once per Hadoop user

-- select on external table (data in HDFS) SELECT * FROM SensorData WHERE Speed > 65; A possible execution plan: CREATE temp table T Execute on SQL compute nodes 1 IMPORT FROM HDFS HDFS Customer file read into T in parallel 2 EXECUTE QUERY Select * from T where T.Speed > 65 3 PolyBase Query Example #1

32 Under-the-hood Exploiting compute resources of Hadoop Clusters with push-down computation

Push-down Computation (1) Leverage the distributed query power of Map Reduce MICROSOFT CONFIDENTIAL - INTERNAL ONLY HDFS File / Directory //hdfs/social_media/twitter/Daily.log Hadoop Column filtering Dynamic binding Row filtering UserLocationProductSentimentRtwtHour Date Sean Suz Audie Tom Sanjay Roger Steve CA WA CO IL MN TX AL xbox excel sqls wp8 ssas ssrs SELECT User, Product, Sentiment FROM Twitter_External_Table WHERE Hour = Current - 1 AND Date = Today AND Sentiment > 0;

HDFS Hadoop HDFS blocks DB PolyBase Query 1 MapReduce Cost-based decision on how much computation to push SQL operations on HDFS data pushed into Hadoop as MapReduce jobs Push-down computation (2) Map job

Cost-based Decision (for split-based query execution) Major factor for decision is data volume reduction Hadoop takes seconds to spin-up Map job o Spin-up time varies depending on distribution and OS o No push-down for scenarios where SQL can execute under seconds w/o push-down Cardinality of predicate matters o Creating statistics on external table (not auto-created) Queries can have “pushable” & “non-pushable” expressions and predicates – Pushable ones will be evaluated on Hadoop side – Processing of non-pushable ones will be done on SQL side – Aggregate functions (sum, count, …) partially pushed – JOINS never pushed, always executed on SQL side External Table External Data source External File Format Your Apps PowerPivot PowerView PDW Engine Service Polybase Storage Layer (PPAX) HDFS Bridge – (as part of DMS) Job Submitter

-- select and aggregate on external table (data in HDFS) SELECT AVG(Speed) FROM SensorData WHERE Speed > 65 GROUP BY State; Execution Plan: PolyBase Query Example #2 Run MR Job on Hadoop Apply filter and compute aggregate on SensorData. 1 What happens here? Step 1: QO compiles predicate into Java. Step 2: PolyBase Engine submits Map job to Hadoop cluster. Output left in hdfsTemp. hdfsTemp CA AK

-- select and aggregate on external table (data in HDFS) SELECT AVG(Speed) FROM SensorData WHERE Speed > 65 GROUP BY State; Execution Plan: PolyBase Query Example #2 1.Query optimizer made a cost- based decision on what operators to push. 2.Predicate and aggregate pushed into Hadoop cluster as a Map job. Run MR Job on Hadoop Apply filter and compute aggregate on Customer. Output left in hdfsTemp 1 IMPORT hdfsTEMP Read hdfsTemp into T 3 CREATE temp table T On SQL compute nodes 2 RETURN OPERATION Read from T Do final aggregation 4 hdfsTemp CA AK

Dr. David DeWitt For letting me use his material to explain the PolyBase technology. Our team in Gray Systems Lab, Madison and Aliso Viejo Acknowledgments

Questions