SlideShare a Scribd company logo
Pig and Hive
Csaba Toth
Central California .NET User Group
Meeting
Date: April 17th, 2014
Location: Bitwise Industries, Fresno
Agenda
• Little recap of Hadoop and Map-Reduce
• Pig and Hive
• Recommendation engine
• Demos 1: Exercises with on-premise Hadoop
emulator
• Demos 2: Azure HDInsight
Hadoop
• Hadoop is an open-source software
framework that supports data-intensive
distributed applications.
• Has two main pieces:
– Storing large amounts of data: HDFS, Hadoop
Distributed File System
– Processing large amounts of data: implementation
of the MapReduce programming model
Hadoop
• All of this in a cost effective way: Hadoop is
managing a cluster of commodity hardware
computers.
• The cluster is composed of a single master
node and multiple worker nodes
• It is written in Java, utilizes JVMs
Name node
HDFS visually
Metadata
Store
Data node Data node Data node
Node 1 Node 2
Block A Block B Block A Block B
Node 3
Block A Block B
Name node
Heart beat signals and
communication
Job / task management
Jobtracker
Data node Data node Data node
Tasktracker Tasktracker
Map 1 Reduce 1 Map 2 Reduce 2
Tasktracker
Map 3 Reduce 3
MapReduce
• Hadoop leverages the functional programming model
of map/reduce.
• Moves away from shared resources and related
synchronization and contention issues
• Thus inherently scalable and suitable for processing
large data sets, distributed computing on clusters of
computers/nodes.
• The goal of map reduce is to break huge data sets into
smaller pieces, distribute those pieces to various
worker nodes, and process the data in parallel.
• Hadoop leverages a distributed file system to store the
data on various nodes.
MapReduce
• It is about two functions: map and reduce
1. Map Step:
– Processes a key/value pairs and generate a set of
intermediate key/value pairs form that
2. Shuffle step:
– Groups all intermediate values associated with the
same intermediate key into one set
3. Reduce Step:
– Processes the intermediate values associated with the
same intermediate key and produces a set of values
based on the groups (usually some kind of aggregate)
Word count
http://blog.jteam.nl/wp-content/uploads/2009/08/MapReduceWordCountOverview1.png
Map, Shuffle, and Reduce
https://mm-tom.s3.amazonaws.com/blog/MapReduce.png
Hadoop Ecosystem and MapReduce
• Writing MapReduce Jobs in Java or C# or other
languages is useful but it is the hard way
• Several domain-specific higher level languages
and frameworks exist
– They allow phrase complicated tasks way more
simpler and shorter than Java
– These languages translate everything into Map-
Reduce jobs under the hood transparently
• We’ll see two examples: Hive and Pig
Hive and Pig
• Hive (http://hive.apache.org/)
– Provides SQL-like approach
– The best if the input data is at least conform to some
schema, so it can be consumed (SQL requires columnar
format, tables)
– Good for someone coming from SQL background
• Pig (http://pig.apache.org/)
– The syntax is closer to a programming language
– It defines a series of transformations, projecting one
schema into another
– Also the best if the data is not totally free form and have
some kind of schema
Hadoop Ecosystem / Architecture
Log Data RDBMS
Data Integration Layer
Flume Sqoop
Storage Layer (HDFS)
Computing Layer (MapReduce)
Advanced Query Engine (Hive, Pig)
Data Mining
(Pegasus,
Mahout)
Index,
Searches
(Lucene)
DB drivers
(Hive driver)
Web Browser (JS)Presentation
Layer
Simple recommendation engine
• Sites such as Amazon.com and Netflix.com use
complex algorithms
• But the underlying concepts are simple:
finding correlation between data
• Pearson Coefficient, Excel CORREL function
Pearson coefficient
Pearson product-moment correlation
coefficient value
Comments
-1 Perfectly correlated data, but as one rises
the other decreases
0 Uncorrelated data
+1 Perfectly correlated data
• DEMO
Ratings data
Name The Lord of the Rings The Chronicles of Narnia
Jack 2 3
Mark 4 4.5
Albert 4 3.5
John 5 5
• Pearson Correlation Coefficient: 0.8705715
Ratings data
Name of
movie critic
Name of movie Rating
Lisa Rose Lady in the Water 2.5
Lisa Rose Snakes on a Plane 3.5
Lisa Rose Just My Luck 3
Lisa Rose Superman Returns 3.5
Lisa Rose You Me and Dupree 2.5
Lisa Rose The Night Listener 3
Gene Seymour Lady in the Water 3
Gene Seymour Snakes on a Plane 3.5
Gene Seymour Just My Luck 1.5
Gene Seymour Superman Returns 5
Gene Seymour The Night Listener 3
Simple recommendation
• DEMO
– C# implementation
– Simple naïve algorithm
– Non parallel, not Hadoop
Pig
• A data-flow language
• Express the processing as a series of
transformations
• Steps are translated into Map Reduce jobs
• We can look at it like LINQ
• We’ll learn it by example
– Pig’s command line shell: grunt
– Pig’s language: Pig Latin
Pig
• Load and store:
– can load/store data from/to HDFS
• Relations
– The transformations are performed on ‘relations’ – Pig
calls the collections like that, don not confuse with
traditional relational DB terminology!
– Think of it as a table with rows and columns of data
– When grouped relations can contain associative key-
values
Pig
• Joins
– Can accomplish joins in an conceptually intuitive
manner (using a common key)
• Filter
– Can apply filters to data. A predicate should be
specified
• Projection
– Can project from an existing collection = form a new
collection in a way like an SQL select does. That is the
“GENERATE” command of Pig
Pig
• Grouping
– Can group data by one or more keys. Once grouped,
you can maintain the hierarchical structure in the
relation throughout the transformations. Projections
can be made, or sometimes you can flatten some of
the hierarchy.
• Dump
– DUMP statement outputs a contents of a relation onto
the console. Useful when fooling around in the Pig
shell
• Extensible
– UDFs: User Defined Functions
Simple recommendation
• DEMO
– Pig implementation
– Local pseudo cluster (HDInsight on-premise)
Hive DEMO
• Analyzing previous meeting’s wordcount
(warpeace) results
• Analyzing the recommendation engine results
HDInsight
• Microsoft’s Hadoop PaaS solution in the cloud
• Hortonworks Hadoop implementation
• New Azure portal is coming, in preview:
http://azure.microsoft.com/en-us/services/preview/
• Build conference: 40 new functions in Azure
• Latest addition: ISS, Azure Intelligent Systems
Service (https://connect.microsoft.com/site1132/)
• Analytics Platform System (APS): evolutionary
combination of SQL Server PDW and Hadoop
References
• Daniel Jebaraj: Ignore HDInsight at Your Own
Peril: Everything You Need to Know
• Tom White: Hadoop: The Definitive Guide, 3rd
Edition, Yahoo Press
• Lynn Langit’s various presentations and YouTube
videos
• Dattatrey Sindol: Big Data Basics - Part 1 -
Introduction to Big Data
• Bruno Terkaly’s presentations (for example
Hadoop on Azure: Introduction)
Thanks for your attention!
Hadoop vs RDBMS
Hadoop / MapReduce RDBMS
Size of data Petabytes Gigabytes
Integrity of data Low High (referential, typed)
Data schema Dynamic Static
Access method Interactive and Batch Batch
Scaling Linear Nonlinear (worse than
linear)
Data structure Unstructured Structured
Normalization of data Not Required Required
Query Response Time Has latency (due to batch
processing)
Can be near immediate

More Related Content

What's hot (19)

PDF
Introducing Apache Giraph for Large Scale Graph Processing
sscdotopen
 
PDF
Hadoop trainting in hyderabad@kelly technologies
Kelly Technologies
 
PPTX
Hadoop MapReduce Streaming and Pipes
Hanborq Inc.
 
PDF
Dynamic Draph / Iterative Computation on Apache Giraph
DataWorks Summit
 
PPTX
Breaking Spark: Top 5 mistakes to avoid when using Apache Spark in production
Neelesh Srinivas Salian
 
PDF
Aws dc elastic-mapreduce
beaknit
 
PDF
Hadoop Internals (2.3.0 or later)
Emilio Coppa
 
PPTX
Improve your SQL workload with observability
OVHcloud
 
PPTX
MapReduce Paradigm
Dilip Reddy
 
PDF
Sqoop2 refactoring for generic data transfer - NYC Sqoop Meetup
gethue
 
PPTX
Facebook Analytics with Elastic Map/Reduce
J Singh
 
PDF
Lecture 2 part 3
Jazan University
 
PDF
Hadoop & MapReduce
Newvewm
 
PDF
PyCascading for Intuitive Flow Processing with Hadoop (gabor szabo)
PyData
 
PDF
Hadoop - Introduction to map reduce programming - Reunião 12/04/2014
soujavajug
 
PPTX
Hadoop/MapReduce/HDFS
praveen bhat
 
PPTX
03 pig intro
Subhas Kumar Ghosh
 
PPTX
Aws multi-region High Availability
Adam Book
 
PPTX
Map reduce prashant
Prashant Gupta
 
Introducing Apache Giraph for Large Scale Graph Processing
sscdotopen
 
Hadoop trainting in hyderabad@kelly technologies
Kelly Technologies
 
Hadoop MapReduce Streaming and Pipes
Hanborq Inc.
 
Dynamic Draph / Iterative Computation on Apache Giraph
DataWorks Summit
 
Breaking Spark: Top 5 mistakes to avoid when using Apache Spark in production
Neelesh Srinivas Salian
 
Aws dc elastic-mapreduce
beaknit
 
Hadoop Internals (2.3.0 or later)
Emilio Coppa
 
Improve your SQL workload with observability
OVHcloud
 
MapReduce Paradigm
Dilip Reddy
 
Sqoop2 refactoring for generic data transfer - NYC Sqoop Meetup
gethue
 
Facebook Analytics with Elastic Map/Reduce
J Singh
 
Lecture 2 part 3
Jazan University
 
Hadoop & MapReduce
Newvewm
 
PyCascading for Intuitive Flow Processing with Hadoop (gabor szabo)
PyData
 
Hadoop - Introduction to map reduce programming - Reunião 12/04/2014
soujavajug
 
Hadoop/MapReduce/HDFS
praveen bhat
 
03 pig intro
Subhas Kumar Ghosh
 
Aws multi-region High Availability
Adam Book
 
Map reduce prashant
Prashant Gupta
 

Similar to Hive and Pig for .NET User Group (20)

PPTX
Hands on Hadoop and pig
Sudar Muthu
 
PPTX
BDA R20 21NM - Summary Big Data Analytics
NetajiGandi1
 
PPTX
Big data concepts
Serkan Özal
 
PPTX
Hadoop for the Absolute Beginner
Ike Ellis
 
PPTX
Big Data and NoSQL for Database and BI Pros
Andrew Brust
 
PPTX
Apache Pig
Shashidhar Basavaraju
 
PPTX
Hadoop workshop
Purna Chander
 
PPTX
Introduction to PIG
Shanmathy Prabakaran
 
PPTX
Hadoop for sysadmins
ericwilliammarshall
 
PPTX
Windows Azure HDInsight Service
Neil Mackenzie
 
PDF
Introduction to pig & pig latin
knowbigdata
 
PDF
Hadoop Pig: MapReduce the easy way!
Nathan Bijnens
 
PPT
Hadoop - Introduction to Hadoop
Vibrant Technologies & Computers
 
PDF
Hadoop breizhjug
David Morin
 
PDF
43_Sameer_Kumar_Das2
Mr.Sameer Kumar Das
 
PDF
An Overview Of Apache Pig And Apache Hive
Joe Andelija
 
PPTX
Apache pig presentation_siddharth_mathur
Siddharth Mathur
 
PDF
introduction to data processing using Hadoop and Pig
Ricardo Varela
 
PPTX
Hadoop - A big data initiative
Mansi Mehra
 
Hands on Hadoop and pig
Sudar Muthu
 
BDA R20 21NM - Summary Big Data Analytics
NetajiGandi1
 
Big data concepts
Serkan Özal
 
Hadoop for the Absolute Beginner
Ike Ellis
 
Big Data and NoSQL for Database and BI Pros
Andrew Brust
 
Hadoop workshop
Purna Chander
 
Introduction to PIG
Shanmathy Prabakaran
 
Hadoop for sysadmins
ericwilliammarshall
 
Windows Azure HDInsight Service
Neil Mackenzie
 
Introduction to pig & pig latin
knowbigdata
 
Hadoop Pig: MapReduce the easy way!
Nathan Bijnens
 
Hadoop - Introduction to Hadoop
Vibrant Technologies & Computers
 
Hadoop breizhjug
David Morin
 
43_Sameer_Kumar_Das2
Mr.Sameer Kumar Das
 
An Overview Of Apache Pig And Apache Hive
Joe Andelija
 
Apache pig presentation_siddharth_mathur
Siddharth Mathur
 
introduction to data processing using Hadoop and Pig
Ricardo Varela
 
Hadoop - A big data initiative
Mansi Mehra
 
Ad

More from Csaba Toth (18)

PPTX
Git, GitHub gh-pages and static websites
Csaba Toth
 
PPTX
Eclipse RCP Demo
Csaba Toth
 
PPTX
The Health of Networks
Csaba Toth
 
PPTX
Introduction to Google BigQuery
Csaba Toth
 
PPTX
Column Stores and Google BigQuery
Csaba Toth
 
PPTX
Windows 10 preview
Csaba Toth
 
PPTX
Developing Multi Platform Games using PlayN and TriplePlay Framework
Csaba Toth
 
PPTX
Trends and future of java
Csaba Toth
 
PPTX
Google Compute Engine
Csaba Toth
 
PPTX
Google App Engine
Csaba Toth
 
PPTX
Setting up a free open source java e-commerce website
Csaba Toth
 
PPTX
CCJUG inaugural meeting and Adopt a JSR
Csaba Toth
 
PPTX
Google Cloud Platform, Compute Engine, and App Engine
Csaba Toth
 
PPTX
Hadoop and Mapreduce for .NET User Group
Csaba Toth
 
PPTX
Introduction to Hadoop and MapReduce
Csaba Toth
 
PPTX
Introduction into windows 8 application development
Csaba Toth
 
PPTX
Ups and downs of enterprise Java app in a research setting
Csaba Toth
 
PPTX
Adopt a JSR NJUG edition
Csaba Toth
 
Git, GitHub gh-pages and static websites
Csaba Toth
 
Eclipse RCP Demo
Csaba Toth
 
The Health of Networks
Csaba Toth
 
Introduction to Google BigQuery
Csaba Toth
 
Column Stores and Google BigQuery
Csaba Toth
 
Windows 10 preview
Csaba Toth
 
Developing Multi Platform Games using PlayN and TriplePlay Framework
Csaba Toth
 
Trends and future of java
Csaba Toth
 
Google Compute Engine
Csaba Toth
 
Google App Engine
Csaba Toth
 
Setting up a free open source java e-commerce website
Csaba Toth
 
CCJUG inaugural meeting and Adopt a JSR
Csaba Toth
 
Google Cloud Platform, Compute Engine, and App Engine
Csaba Toth
 
Hadoop and Mapreduce for .NET User Group
Csaba Toth
 
Introduction to Hadoop and MapReduce
Csaba Toth
 
Introduction into windows 8 application development
Csaba Toth
 
Ups and downs of enterprise Java app in a research setting
Csaba Toth
 
Adopt a JSR NJUG edition
Csaba Toth
 
Ad

Recently uploaded (20)

PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
PPTX
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
PPTX
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
PPTX
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
PDF
Automated Test Case Repair Using Language Models
Lionel Briand
 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
PPTX
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
PDF
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
 
PDF
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
 
PDF
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 
PDF
AI Software Development Process, Strategies and Challenges
Net-Craft.com
 
PPTX
Seamless-Image-Conversion-From-Raster-to-wrt-rtx-rtx.pptx
Quick Conversion Services
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PPTX
ManageIQ - Sprint 264 Review - Slide Deck
ManageIQ
 
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
 
PDF
Dealing with JSON in the relational world
Andres Almiray
 
PDF
>Wondershare Filmora Crack Free Download 2025
utfefguu
 
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
PDF
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
 
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
Automated Test Case Repair Using Language Models
Lionel Briand
 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
IObit Uninstaller Pro 14.3.1.8 Crack for Windows Latest
utfefguu
 
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
 
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 
AI Software Development Process, Strategies and Challenges
Net-Craft.com
 
Seamless-Image-Conversion-From-Raster-to-wrt-rtx-rtx.pptx
Quick Conversion Services
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
ManageIQ - Sprint 264 Review - Slide Deck
ManageIQ
 
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
 
Dealing with JSON in the relational world
Andres Almiray
 
>Wondershare Filmora Crack Free Download 2025
utfefguu
 
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
 

Hive and Pig for .NET User Group

  • 1. Pig and Hive Csaba Toth Central California .NET User Group Meeting Date: April 17th, 2014 Location: Bitwise Industries, Fresno
  • 2. Agenda • Little recap of Hadoop and Map-Reduce • Pig and Hive • Recommendation engine • Demos 1: Exercises with on-premise Hadoop emulator • Demos 2: Azure HDInsight
  • 3. Hadoop • Hadoop is an open-source software framework that supports data-intensive distributed applications. • Has two main pieces: – Storing large amounts of data: HDFS, Hadoop Distributed File System – Processing large amounts of data: implementation of the MapReduce programming model
  • 4. Hadoop • All of this in a cost effective way: Hadoop is managing a cluster of commodity hardware computers. • The cluster is composed of a single master node and multiple worker nodes • It is written in Java, utilizes JVMs
  • 5. Name node HDFS visually Metadata Store Data node Data node Data node Node 1 Node 2 Block A Block B Block A Block B Node 3 Block A Block B
  • 6. Name node Heart beat signals and communication Job / task management Jobtracker Data node Data node Data node Tasktracker Tasktracker Map 1 Reduce 1 Map 2 Reduce 2 Tasktracker Map 3 Reduce 3
  • 7. MapReduce • Hadoop leverages the functional programming model of map/reduce. • Moves away from shared resources and related synchronization and contention issues • Thus inherently scalable and suitable for processing large data sets, distributed computing on clusters of computers/nodes. • The goal of map reduce is to break huge data sets into smaller pieces, distribute those pieces to various worker nodes, and process the data in parallel. • Hadoop leverages a distributed file system to store the data on various nodes.
  • 8. MapReduce • It is about two functions: map and reduce 1. Map Step: – Processes a key/value pairs and generate a set of intermediate key/value pairs form that 2. Shuffle step: – Groups all intermediate values associated with the same intermediate key into one set 3. Reduce Step: – Processes the intermediate values associated with the same intermediate key and produces a set of values based on the groups (usually some kind of aggregate)
  • 10. Map, Shuffle, and Reduce https://mm-tom.s3.amazonaws.com/blog/MapReduce.png
  • 11. Hadoop Ecosystem and MapReduce • Writing MapReduce Jobs in Java or C# or other languages is useful but it is the hard way • Several domain-specific higher level languages and frameworks exist – They allow phrase complicated tasks way more simpler and shorter than Java – These languages translate everything into Map- Reduce jobs under the hood transparently • We’ll see two examples: Hive and Pig
  • 12. Hive and Pig • Hive (http://hive.apache.org/) – Provides SQL-like approach – The best if the input data is at least conform to some schema, so it can be consumed (SQL requires columnar format, tables) – Good for someone coming from SQL background • Pig (http://pig.apache.org/) – The syntax is closer to a programming language – It defines a series of transformations, projecting one schema into another – Also the best if the data is not totally free form and have some kind of schema
  • 13. Hadoop Ecosystem / Architecture Log Data RDBMS Data Integration Layer Flume Sqoop Storage Layer (HDFS) Computing Layer (MapReduce) Advanced Query Engine (Hive, Pig) Data Mining (Pegasus, Mahout) Index, Searches (Lucene) DB drivers (Hive driver) Web Browser (JS)Presentation Layer
  • 14. Simple recommendation engine • Sites such as Amazon.com and Netflix.com use complex algorithms • But the underlying concepts are simple: finding correlation between data • Pearson Coefficient, Excel CORREL function
  • 15. Pearson coefficient Pearson product-moment correlation coefficient value Comments -1 Perfectly correlated data, but as one rises the other decreases 0 Uncorrelated data +1 Perfectly correlated data • DEMO
  • 16. Ratings data Name The Lord of the Rings The Chronicles of Narnia Jack 2 3 Mark 4 4.5 Albert 4 3.5 John 5 5 • Pearson Correlation Coefficient: 0.8705715
  • 17. Ratings data Name of movie critic Name of movie Rating Lisa Rose Lady in the Water 2.5 Lisa Rose Snakes on a Plane 3.5 Lisa Rose Just My Luck 3 Lisa Rose Superman Returns 3.5 Lisa Rose You Me and Dupree 2.5 Lisa Rose The Night Listener 3 Gene Seymour Lady in the Water 3 Gene Seymour Snakes on a Plane 3.5 Gene Seymour Just My Luck 1.5 Gene Seymour Superman Returns 5 Gene Seymour The Night Listener 3
  • 18. Simple recommendation • DEMO – C# implementation – Simple naïve algorithm – Non parallel, not Hadoop
  • 19. Pig • A data-flow language • Express the processing as a series of transformations • Steps are translated into Map Reduce jobs • We can look at it like LINQ • We’ll learn it by example – Pig’s command line shell: grunt – Pig’s language: Pig Latin
  • 20. Pig • Load and store: – can load/store data from/to HDFS • Relations – The transformations are performed on ‘relations’ – Pig calls the collections like that, don not confuse with traditional relational DB terminology! – Think of it as a table with rows and columns of data – When grouped relations can contain associative key- values
  • 21. Pig • Joins – Can accomplish joins in an conceptually intuitive manner (using a common key) • Filter – Can apply filters to data. A predicate should be specified • Projection – Can project from an existing collection = form a new collection in a way like an SQL select does. That is the “GENERATE” command of Pig
  • 22. Pig • Grouping – Can group data by one or more keys. Once grouped, you can maintain the hierarchical structure in the relation throughout the transformations. Projections can be made, or sometimes you can flatten some of the hierarchy. • Dump – DUMP statement outputs a contents of a relation onto the console. Useful when fooling around in the Pig shell • Extensible – UDFs: User Defined Functions
  • 23. Simple recommendation • DEMO – Pig implementation – Local pseudo cluster (HDInsight on-premise)
  • 24. Hive DEMO • Analyzing previous meeting’s wordcount (warpeace) results • Analyzing the recommendation engine results
  • 25. HDInsight • Microsoft’s Hadoop PaaS solution in the cloud • Hortonworks Hadoop implementation • New Azure portal is coming, in preview: http://azure.microsoft.com/en-us/services/preview/ • Build conference: 40 new functions in Azure • Latest addition: ISS, Azure Intelligent Systems Service (https://connect.microsoft.com/site1132/) • Analytics Platform System (APS): evolutionary combination of SQL Server PDW and Hadoop
  • 26. References • Daniel Jebaraj: Ignore HDInsight at Your Own Peril: Everything You Need to Know • Tom White: Hadoop: The Definitive Guide, 3rd Edition, Yahoo Press • Lynn Langit’s various presentations and YouTube videos • Dattatrey Sindol: Big Data Basics - Part 1 - Introduction to Big Data • Bruno Terkaly’s presentations (for example Hadoop on Azure: Introduction)
  • 27. Thanks for your attention!
  • 28. Hadoop vs RDBMS Hadoop / MapReduce RDBMS Size of data Petabytes Gigabytes Integrity of data Low High (referential, typed) Data schema Dynamic Static Access method Interactive and Batch Batch Scaling Linear Nonlinear (worse than linear) Data structure Unstructured Structured Normalization of data Not Required Required Query Response Time Has latency (due to batch processing) Can be near immediate