SlideShare uma empresa Scribd logo
1 de 19
Apache Hive
Sheetal Sharma
Intern At IBM Innovation Centre
Apache Hive
● Apache Hive is a tool built on top of Hadoop
for analyzing large, unstructured data sets
using a SQL-like syntax, thus making Hadoop
accessible to legions of existing BI and
corporate analytics researchers.
● Hive is fundamentally an operational data
store that's also suitable for analyzing large,
relatively static data sets where query time is
not important.
Apache Hive
● Hive makes an excellent addition to an existing data
warehouse, but it is not a replacement. Instead,
using Hive to augment a data warehouse is a great
way to leverage existing investments while keeping
up with the data deluge.
● Hive data store brings together vast amounts
of unstructured data -- such as log files,
customer tweets, email messages, geo-data,
and CRM interactions -- and stores them in an
unstructured format on cheap commodity
hardware.
Apache Hive
● Hive allows analysts to project a databaselike
structure on this data, to resemble traditional
tables, columns, and rows, and to write SQL-
like queries over it.
● This means that different schemas may be
projected over the same data sets, depending
on the nature of the query, allowing the user to
ask questions that weren't envisioned when
the data was gathered.
Apache Hive
● Hive queries traditionally had high latency,
and even small queries could take some time
to run because they were transformed into
map-reduce jobs and submitted to the cluster
to be run in batch mode.
● long-running queries were inconvenient and
troublesome to run in a multi-user
environment, where a single job could
dominate the cluster.
Apache Hive
multi-user environment
Apache Hive
● HiveQL, the query language, is based on SQL-92, it
differs from SQL in some important ways due to its
running on top of Hadoop.
● For instance, DDL (Data Definition Language)
commands need to account for the fact that tables
exist in a multi-user file system that supports multiple
storage formats.
● Nevertheless, SQL users will find the HiveQL
language familiar and should not have any problems
adapting to it.
Hive platform architecture
Hive platform architecture
● From the top down, Hive looks much like any other
relational database.
● Users write SQL queries and submit them for
processing, using either a command line tool that
interacts directly with the database engine or by
using third-party tools that communicate with the
database via JDBC or ODBC.
● By using the JDBC and ODBC drivers, available for
Mac and Windows, data workers can connect their
favorite SQL client to Hive to browse, query, and
create tables.
Working with Hive
● HiveQL was designed to ease the transition from SQL
and to get data analysts up and running on Hadoop right
away.
● Most BI and SQL developer tools can connect to Hive as
easily as to any other database. Using the ODBC
connector, users can import data and use tools like
PowerPivot for Excel to explore and analyze data,
making big data accessible across the organization.
Differences in HiveQL and standard SQL
Hive 0.13 was designed to perform full-table scans
across petabyte-scale data sets using the YARN and Tez
infrastructure, so some features normally found in a
relational database aren't available to the Hive user.
These include transactions, cursors, prepared
statements, row-level updates and deletes, and the
ability to cancel a running query.
The absence of these features won't significantly
affect data analysis, but it might affect your ability to use
existing SQL queries on a Hive cluster.
Differences in HiveQL and standard SQL
In a traditional database environment, the database
engine controls all reads and writes to the database. In
Hive, the database tables are stored as files in the
Hadoop Distributed File System (HDFS), where other
applications could have modified them.
Although this can be a good thing, it means that Hive
can never be certain if the data being read matches the
schema.
Aspects of Data Storage
File formats and Compression
● Tuning Hive queries can involve making the underlying
map-reduce jobs run more efficiently by optimizing the
number, type, and size of the files backing the database
tables.
● Hive's default storage format is text, which has the
advantage of being usable by other tools.
● The disadvantage, however, is that queries over raw
text files can't be easily optimized.
Hive can read and write several file formats and decompress
many of them on the fly. Storage requirements and query
efficiency can differ dramatically among these file formats, as can
be seen in the figure below (courtesy of Hortonworks).
File formats are an active area of research in the Hadoop community.
Efficient file formats both reduce storage costs and increase query
efficiency.
For Example
● For example, let's say you want to do a query
that's not part of the built-in SQL. Without a
UDF, you would have to dump a temporary
table to disk, run a second tool (such as Pig or
Java) for your custom query, and possibly
produce a third table in HDFS that would be
analyzed by Hive
Hive Query Performance
Hive 0.13 is the final piece in the Stinger initiative, a
community effort to improve the performance of Hive. The
most significant feature of 0.13 is the ability to run queries on
the new Tez execution framework.
● query times drop by half when run on Tez.
● On queries that could be cached, times dropped another 30
percent.
● On larger data sets, the speedup was even more dramatic.
● possible to execute petabyte-scale queries to refine and
cleanse data for later incorporation into data warehouse
analytics.
Hive Query Performance
● Hadoop and Hive could also be used in the reverse scenario:
to off-load data summaries that would otherwise need to be
stored in the data warehouse at much greater cost.
● Organizations or departments without a data warehouse can
start with Hive to get a feel for the value of data analytics.
● It does make a great, low-cost, large-scale operational data
store with a fair set of analytics tools.
● Hive offers near linear scalability in query processing, an order
of magnitude better price/performance ratio than traditional
enterprise data warehouses.
Apache Hive At a Glance
Thank You!

Mais conteúdo relacionado

Mais procurados

SQL-on-Hadoop Tutorial
SQL-on-Hadoop TutorialSQL-on-Hadoop Tutorial
SQL-on-Hadoop TutorialDaniel Abadi
 
Design of Hadoop Distributed File System
Design of Hadoop Distributed File SystemDesign of Hadoop Distributed File System
Design of Hadoop Distributed File SystemDr. C.V. Suresh Babu
 
Boston Hadoop Meetup, April 26 2012
Boston Hadoop Meetup, April 26 2012Boston Hadoop Meetup, April 26 2012
Boston Hadoop Meetup, April 26 2012Daniel Abadi
 
Comparison - RDBMS vs Hadoop vs Apache
Comparison - RDBMS vs Hadoop vs ApacheComparison - RDBMS vs Hadoop vs Apache
Comparison - RDBMS vs Hadoop vs ApacheSandeepTaksande
 
Big data vahidamiri-tabriz-13960226-datastack.ir
Big data vahidamiri-tabriz-13960226-datastack.irBig data vahidamiri-tabriz-13960226-datastack.ir
Big data vahidamiri-tabriz-13960226-datastack.irdatastack
 
Big Data and Hadoop Components
Big Data and Hadoop ComponentsBig Data and Hadoop Components
Big Data and Hadoop ComponentsDezyreAcademy
 
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Simplilearn
 
Big Data and Hadoop
Big Data and HadoopBig Data and Hadoop
Big Data and HadoopMr. Ankit
 
HADOOP TECHNOLOGY ppt
HADOOP  TECHNOLOGY pptHADOOP  TECHNOLOGY ppt
HADOOP TECHNOLOGY pptsravya raju
 
Introduction to Apache hadoop
Introduction to Apache hadoopIntroduction to Apache hadoop
Introduction to Apache hadoopOmar Jaber
 
Hadoop Innovation Summit 2014
Hadoop Innovation Summit 2014Hadoop Innovation Summit 2014
Hadoop Innovation Summit 2014Data Con LA
 

Mais procurados (20)

SQL-on-Hadoop Tutorial
SQL-on-Hadoop TutorialSQL-on-Hadoop Tutorial
SQL-on-Hadoop Tutorial
 
Hive
HiveHive
Hive
 
Design of Hadoop Distributed File System
Design of Hadoop Distributed File SystemDesign of Hadoop Distributed File System
Design of Hadoop Distributed File System
 
Boston Hadoop Meetup, April 26 2012
Boston Hadoop Meetup, April 26 2012Boston Hadoop Meetup, April 26 2012
Boston Hadoop Meetup, April 26 2012
 
Comparison - RDBMS vs Hadoop vs Apache
Comparison - RDBMS vs Hadoop vs ApacheComparison - RDBMS vs Hadoop vs Apache
Comparison - RDBMS vs Hadoop vs Apache
 
Hive
HiveHive
Hive
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
 
1. Apache HIVE
1. Apache HIVE1. Apache HIVE
1. Apache HIVE
 
Apache Hadoop Hive
Apache Hadoop HiveApache Hadoop Hive
Apache Hadoop Hive
 
SQL on Hadoop
SQL on HadoopSQL on Hadoop
SQL on Hadoop
 
Big data vahidamiri-tabriz-13960226-datastack.ir
Big data vahidamiri-tabriz-13960226-datastack.irBig data vahidamiri-tabriz-13960226-datastack.ir
Big data vahidamiri-tabriz-13960226-datastack.ir
 
Big Data and Hadoop Components
Big Data and Hadoop ComponentsBig Data and Hadoop Components
Big Data and Hadoop Components
 
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
 
Hadoop
HadoopHadoop
Hadoop
 
Big Data and Hadoop
Big Data and HadoopBig Data and Hadoop
Big Data and Hadoop
 
HADOOP TECHNOLOGY ppt
HADOOP  TECHNOLOGY pptHADOOP  TECHNOLOGY ppt
HADOOP TECHNOLOGY ppt
 
Introduction to Apache hadoop
Introduction to Apache hadoopIntroduction to Apache hadoop
Introduction to Apache hadoop
 
Hadoop Innovation Summit 2014
Hadoop Innovation Summit 2014Hadoop Innovation Summit 2014
Hadoop Innovation Summit 2014
 
Session 14 - Hive
Session 14 - HiveSession 14 - Hive
Session 14 - Hive
 
Mongo db
Mongo dbMongo db
Mongo db
 

Destaque

Consumer 720-The keys to consumer engagement in a social media world
Consumer 720-The keys to consumer engagement in a social media  worldConsumer 720-The keys to consumer engagement in a social media  world
Consumer 720-The keys to consumer engagement in a social media worldduane lyons
 
Internet and Social Media Marketing - L5 Sample
Internet and Social Media Marketing - L5 SampleInternet and Social Media Marketing - L5 Sample
Internet and Social Media Marketing - L5 SampleSpilios Aristotelidis
 
Сучасна школа
Сучасна школаСучасна школа
Сучасна школаLyudmila Boyko
 
11. робота з обдарованими учнями
11. робота з обдарованими учнями11. робота з обдарованими учнями
11. робота з обдарованими учнямиLyudmila Boyko
 
Alexander Godfrey Learning marketing (feb 2015)
Alexander Godfrey Learning marketing (feb 2015)Alexander Godfrey Learning marketing (feb 2015)
Alexander Godfrey Learning marketing (feb 2015)Roger Godfrey
 
estrategias de comunicación
estrategias de comunicación estrategias de comunicación
estrategias de comunicación Fidel Vargas
 
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...István Ignácz
 
метод учебного проекта на уроках
метод учебного проекта на урокахметод учебного проекта на уроках
метод учебного проекта на урокахMatveeva050287
 
Updated baron tower near Greenhills, San Juan City, Metro Manila
Updated baron tower near Greenhills, San Juan City, Metro ManilaUpdated baron tower near Greenhills, San Juan City, Metro Manila
Updated baron tower near Greenhills, San Juan City, Metro ManilaRoy Buen
 
Presentation2
Presentation2Presentation2
Presentation2Ud Ehi
 
Urban deca tower edsa (1)
Urban deca tower   edsa (1)Urban deca tower   edsa (1)
Urban deca tower edsa (1)Roy Buen
 

Destaque (17)

Consumer 720-The keys to consumer engagement in a social media world
Consumer 720-The keys to consumer engagement in a social media  worldConsumer 720-The keys to consumer engagement in a social media  world
Consumer 720-The keys to consumer engagement in a social media world
 
LR Beauty 01 2015
LR Beauty 01 2015LR Beauty 01 2015
LR Beauty 01 2015
 
Internet and Social Media Marketing - L5 Sample
Internet and Social Media Marketing - L5 SampleInternet and Social Media Marketing - L5 Sample
Internet and Social Media Marketing - L5 Sample
 
Ganesan resume
Ganesan resumeGanesan resume
Ganesan resume
 
Сучасна школа
Сучасна школаСучасна школа
Сучасна школа
 
11. робота з обдарованими учнями
11. робота з обдарованими учнями11. робота з обдарованими учнями
11. робота з обдарованими учнями
 
Alexander Godfrey Learning marketing (feb 2015)
Alexander Godfrey Learning marketing (feb 2015)Alexander Godfrey Learning marketing (feb 2015)
Alexander Godfrey Learning marketing (feb 2015)
 
eusim unlimited call to eu
 eusim unlimited call to eu  eusim unlimited call to eu
eusim unlimited call to eu
 
estrategias de comunicación
estrategias de comunicación estrategias de comunicación
estrategias de comunicación
 
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...
product.bp meetup: Design for the Features of Tomorrow, Improve the KPIs of T...
 
darshan-lal
darshan-laldarshan-lal
darshan-lal
 
метод учебного проекта на уроках
метод учебного проекта на урокахметод учебного проекта на уроках
метод учебного проекта на уроках
 
Rockagent
RockagentRockagent
Rockagent
 
Updated baron tower near Greenhills, San Juan City, Metro Manila
Updated baron tower near Greenhills, San Juan City, Metro ManilaUpdated baron tower near Greenhills, San Juan City, Metro Manila
Updated baron tower near Greenhills, San Juan City, Metro Manila
 
Presentation2
Presentation2Presentation2
Presentation2
 
Urban deca tower edsa (1)
Urban deca tower   edsa (1)Urban deca tower   edsa (1)
Urban deca tower edsa (1)
 
HERE GEIZL
HERE GEIZLHERE GEIZL
HERE GEIZL
 

Semelhante a Apache hive1

Building Big data solutions in Azure
Building Big data solutions in AzureBuilding Big data solutions in Azure
Building Big data solutions in AzureMostafa
 
Overview of big data & hadoop version 1 - Tony Nguyen
Overview of big data & hadoop   version 1 - Tony NguyenOverview of big data & hadoop   version 1 - Tony Nguyen
Overview of big data & hadoop version 1 - Tony NguyenThanh Nguyen
 
Big data solutions in Azure
Big data solutions in AzureBig data solutions in Azure
Big data solutions in AzureMostafa
 
Unit II Hadoop Ecosystem_Updated.pptx
Unit II Hadoop Ecosystem_Updated.pptxUnit II Hadoop Ecosystem_Updated.pptx
Unit II Hadoop Ecosystem_Updated.pptxBhavanaHotchandani
 
Intro to Hybrid Data Warehouse
Intro to Hybrid Data WarehouseIntro to Hybrid Data Warehouse
Intro to Hybrid Data WarehouseJonathan Bloom
 
hive architecture and hive components in detail
hive architecture and hive components in detailhive architecture and hive components in detail
hive architecture and hive components in detailHariKumar544765
 
Big Data & Analytics (CSE6005) L6.pptx
Big Data & Analytics (CSE6005) L6.pptxBig Data & Analytics (CSE6005) L6.pptx
Big Data & Analytics (CSE6005) L6.pptxAnonymous9etQKwW
 
Hadoop introduction
Hadoop introductionHadoop introduction
Hadoop introduction葵慶 李
 
Hadoop a Natural Choice for Data Intensive Log Processing
Hadoop a Natural Choice for Data Intensive Log ProcessingHadoop a Natural Choice for Data Intensive Log Processing
Hadoop a Natural Choice for Data Intensive Log ProcessingHitendra Kumar
 
Brief Introduction about Hadoop and Core Services.
Brief Introduction about Hadoop and Core Services.Brief Introduction about Hadoop and Core Services.
Brief Introduction about Hadoop and Core Services.Muthu Natarajan
 
Hadoop Frameworks Panel__HadoopSummit2010
Hadoop Frameworks Panel__HadoopSummit2010Hadoop Frameworks Panel__HadoopSummit2010
Hadoop Frameworks Panel__HadoopSummit2010Yahoo Developer Network
 

Semelhante a Apache hive1 (20)

Building Big data solutions in Azure
Building Big data solutions in AzureBuilding Big data solutions in Azure
Building Big data solutions in Azure
 
BIGDATA ppts
BIGDATA pptsBIGDATA ppts
BIGDATA ppts
 
Overview of big data & hadoop version 1 - Tony Nguyen
Overview of big data & hadoop   version 1 - Tony NguyenOverview of big data & hadoop   version 1 - Tony Nguyen
Overview of big data & hadoop version 1 - Tony Nguyen
 
Big data solutions in Azure
Big data solutions in AzureBig data solutions in Azure
Big data solutions in Azure
 
Intro to Hadoop
Intro to HadoopIntro to Hadoop
Intro to Hadoop
 
Unit II Hadoop Ecosystem_Updated.pptx
Unit II Hadoop Ecosystem_Updated.pptxUnit II Hadoop Ecosystem_Updated.pptx
Unit II Hadoop Ecosystem_Updated.pptx
 
Big data and tools
Big data and tools Big data and tools
Big data and tools
 
Intro to Hybrid Data Warehouse
Intro to Hybrid Data WarehouseIntro to Hybrid Data Warehouse
Intro to Hybrid Data Warehouse
 
Hive with HDInsight
Hive with HDInsightHive with HDInsight
Hive with HDInsight
 
Hadoop.pptx
Hadoop.pptxHadoop.pptx
Hadoop.pptx
 
Hive and querying data
Hive and querying dataHive and querying data
Hive and querying data
 
hive architecture and hive components in detail
hive architecture and hive components in detailhive architecture and hive components in detail
hive architecture and hive components in detail
 
Big Data & Analytics (CSE6005) L6.pptx
Big Data & Analytics (CSE6005) L6.pptxBig Data & Analytics (CSE6005) L6.pptx
Big Data & Analytics (CSE6005) L6.pptx
 
Hadoop jon
Hadoop jonHadoop jon
Hadoop jon
 
Hadoop in action
Hadoop in actionHadoop in action
Hadoop in action
 
Hadoop introduction
Hadoop introductionHadoop introduction
Hadoop introduction
 
Hadoop a Natural Choice for Data Intensive Log Processing
Hadoop a Natural Choice for Data Intensive Log ProcessingHadoop a Natural Choice for Data Intensive Log Processing
Hadoop a Natural Choice for Data Intensive Log Processing
 
Brief Introduction about Hadoop and Core Services.
Brief Introduction about Hadoop and Core Services.Brief Introduction about Hadoop and Core Services.
Brief Introduction about Hadoop and Core Services.
 
Hadoop Frameworks Panel__HadoopSummit2010
Hadoop Frameworks Panel__HadoopSummit2010Hadoop Frameworks Panel__HadoopSummit2010
Hadoop Frameworks Panel__HadoopSummit2010
 
Case study on big data
Case study on big dataCase study on big data
Case study on big data
 

Mais de sheetal sharma

Telecommunication Analysis (3 use-cases) with IBM watson analytics
Telecommunication Analysis (3 use-cases) with IBM watson analyticsTelecommunication Analysis (3 use-cases) with IBM watson analytics
Telecommunication Analysis (3 use-cases) with IBM watson analyticssheetal sharma
 
Telecommunication Analysis(3 use-cases) with IBM cognos insight
Telecommunication Analysis(3 use-cases) with IBM cognos insightTelecommunication Analysis(3 use-cases) with IBM cognos insight
Telecommunication Analysis(3 use-cases) with IBM cognos insightsheetal sharma
 
Sentiment Analysis App with DevOps Services
Sentiment Analysis App with DevOps ServicesSentiment Analysis App with DevOps Services
Sentiment Analysis App with DevOps Servicessheetal sharma
 

Mais de sheetal sharma (9)

Db import&export
Db import&exportDb import&export
Db import&export
 
Db import&export
Db import&exportDb import&export
Db import&export
 
Hadoop Introduction
Hadoop IntroductionHadoop Introduction
Hadoop Introduction
 
Apache hadoop
Apache hadoopApache hadoop
Apache hadoop
 
Apache hadoop hbase
Apache hadoop hbaseApache hadoop hbase
Apache hadoop hbase
 
Telecommunication Analysis (3 use-cases) with IBM watson analytics
Telecommunication Analysis (3 use-cases) with IBM watson analyticsTelecommunication Analysis (3 use-cases) with IBM watson analytics
Telecommunication Analysis (3 use-cases) with IBM watson analytics
 
Telecommunication Analysis(3 use-cases) with IBM cognos insight
Telecommunication Analysis(3 use-cases) with IBM cognos insightTelecommunication Analysis(3 use-cases) with IBM cognos insight
Telecommunication Analysis(3 use-cases) with IBM cognos insight
 
Sentiment Analysis App with DevOps Services
Sentiment Analysis App with DevOps ServicesSentiment Analysis App with DevOps Services
Sentiment Analysis App with DevOps Services
 
Watson analytics
Watson analyticsWatson analytics
Watson analytics
 

Último

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 

Último (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 

Apache hive1

  • 1. Apache Hive Sheetal Sharma Intern At IBM Innovation Centre
  • 2. Apache Hive ● Apache Hive is a tool built on top of Hadoop for analyzing large, unstructured data sets using a SQL-like syntax, thus making Hadoop accessible to legions of existing BI and corporate analytics researchers. ● Hive is fundamentally an operational data store that's also suitable for analyzing large, relatively static data sets where query time is not important.
  • 3. Apache Hive ● Hive makes an excellent addition to an existing data warehouse, but it is not a replacement. Instead, using Hive to augment a data warehouse is a great way to leverage existing investments while keeping up with the data deluge. ● Hive data store brings together vast amounts of unstructured data -- such as log files, customer tweets, email messages, geo-data, and CRM interactions -- and stores them in an unstructured format on cheap commodity hardware.
  • 4. Apache Hive ● Hive allows analysts to project a databaselike structure on this data, to resemble traditional tables, columns, and rows, and to write SQL- like queries over it. ● This means that different schemas may be projected over the same data sets, depending on the nature of the query, allowing the user to ask questions that weren't envisioned when the data was gathered.
  • 5. Apache Hive ● Hive queries traditionally had high latency, and even small queries could take some time to run because they were transformed into map-reduce jobs and submitted to the cluster to be run in batch mode. ● long-running queries were inconvenient and troublesome to run in a multi-user environment, where a single job could dominate the cluster.
  • 7. Apache Hive ● HiveQL, the query language, is based on SQL-92, it differs from SQL in some important ways due to its running on top of Hadoop. ● For instance, DDL (Data Definition Language) commands need to account for the fact that tables exist in a multi-user file system that supports multiple storage formats. ● Nevertheless, SQL users will find the HiveQL language familiar and should not have any problems adapting to it.
  • 9. Hive platform architecture ● From the top down, Hive looks much like any other relational database. ● Users write SQL queries and submit them for processing, using either a command line tool that interacts directly with the database engine or by using third-party tools that communicate with the database via JDBC or ODBC. ● By using the JDBC and ODBC drivers, available for Mac and Windows, data workers can connect their favorite SQL client to Hive to browse, query, and create tables.
  • 10. Working with Hive ● HiveQL was designed to ease the transition from SQL and to get data analysts up and running on Hadoop right away. ● Most BI and SQL developer tools can connect to Hive as easily as to any other database. Using the ODBC connector, users can import data and use tools like PowerPivot for Excel to explore and analyze data, making big data accessible across the organization.
  • 11. Differences in HiveQL and standard SQL Hive 0.13 was designed to perform full-table scans across petabyte-scale data sets using the YARN and Tez infrastructure, so some features normally found in a relational database aren't available to the Hive user. These include transactions, cursors, prepared statements, row-level updates and deletes, and the ability to cancel a running query. The absence of these features won't significantly affect data analysis, but it might affect your ability to use existing SQL queries on a Hive cluster.
  • 12. Differences in HiveQL and standard SQL In a traditional database environment, the database engine controls all reads and writes to the database. In Hive, the database tables are stored as files in the Hadoop Distributed File System (HDFS), where other applications could have modified them. Although this can be a good thing, it means that Hive can never be certain if the data being read matches the schema.
  • 13. Aspects of Data Storage File formats and Compression ● Tuning Hive queries can involve making the underlying map-reduce jobs run more efficiently by optimizing the number, type, and size of the files backing the database tables. ● Hive's default storage format is text, which has the advantage of being usable by other tools. ● The disadvantage, however, is that queries over raw text files can't be easily optimized.
  • 14. Hive can read and write several file formats and decompress many of them on the fly. Storage requirements and query efficiency can differ dramatically among these file formats, as can be seen in the figure below (courtesy of Hortonworks). File formats are an active area of research in the Hadoop community. Efficient file formats both reduce storage costs and increase query efficiency.
  • 15. For Example ● For example, let's say you want to do a query that's not part of the built-in SQL. Without a UDF, you would have to dump a temporary table to disk, run a second tool (such as Pig or Java) for your custom query, and possibly produce a third table in HDFS that would be analyzed by Hive
  • 16. Hive Query Performance Hive 0.13 is the final piece in the Stinger initiative, a community effort to improve the performance of Hive. The most significant feature of 0.13 is the ability to run queries on the new Tez execution framework. ● query times drop by half when run on Tez. ● On queries that could be cached, times dropped another 30 percent. ● On larger data sets, the speedup was even more dramatic. ● possible to execute petabyte-scale queries to refine and cleanse data for later incorporation into data warehouse analytics.
  • 17. Hive Query Performance ● Hadoop and Hive could also be used in the reverse scenario: to off-load data summaries that would otherwise need to be stored in the data warehouse at much greater cost. ● Organizations or departments without a data warehouse can start with Hive to get a feel for the value of data analytics. ● It does make a great, low-cost, large-scale operational data store with a fair set of analytics tools. ● Hive offers near linear scalability in query processing, an order of magnitude better price/performance ratio than traditional enterprise data warehouses.
  • 18. Apache Hive At a Glance