SlideShare a Scribd company logo
ACADGILDACADGILD
INTRODUCTION
Why was Hive introduced?
Few years ago, Hadoop came into existence for solving queries on huge structured, Semi-structured,
and unstructured datasets. Hadoop is considered to be the bestsolution to store and process those huge
datasets, because of its advantages like scalability, less infrastructure costs(commodity hardware), data
security(replication factor) and MapReduce, which is the best programming structure.
In the beginning big organizations like Facebook, who received huge datasets of raw data on a daily
basis, were writing Python scripts to ingest data into the Oracle databases. As the amount of data kept
increasing, it was not practical to continue writing lengthy and complex programs. So to handle huge
datasets and to process them, Facebook came out with Hive, a language similar to SQL, where there
was no need for programmers to write complex programs anymore.
Apache introduced Hive as an open-source and is currently one of the most used Hadoop tools in many
organizations.
What is Hive?
Hive is a data warehouse solution built on top of Hadoop for managing huge amount of data stored in
HDFS. It provides an SQL-like query language called HiveQL. Hive is designed in such a way that it
allows easy data summarization, ad-hoc querying, and analysis of Big Data to Process structured data
in Hadoop cluster.
Hive uses HDFS for storage, but stores all the meta information about the database and table in Derby
or MySQL database.
HIVE Vs SQL
HIVE SQL
Hive is a SQL-like scripting language built on
MapReduce
According to ANSI, SQL is the standard
language for RDMBS, used to communicate with
databases
Used for analytics
Used for transactional processing(OLTP) &
analytics
Data per query in PBs Data per query in GBs
Faster execution while performing analytics on
Huge data sets compared to SQL
Slower execution while performing analytics on
huge data sets compared to HIVE
No Normalization required Supports Normalization
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
How to install Hive?
To install Hive, please follow the procedure in the below link:
https://drive.google.com/open?id=0B1QaXx7tpw3SMDktdk5RbHk1MVE
Hive Shell
Hive provides a default interface, where it allows users to run Hive commands. The CLI (Command
Line Interface) is the default Hive shell service which allows users to work on Hive programs.
The following are the commands used to start the Hive shell:
Creating a Database
The purpose of creating a database before creating a table is that the database in Hive is a namespace,
where a table or collection of tables should be placed to work on Hive queries. Here the database and
the schema represents the same category.
The command to create a database are as follows:
hive>CREATE DATABASEEMPdb;
Listing Databases
The show databases command displays the list of databases in HDFS so that the user can select the
database he wants to work with.
hive> SHOW DATABASES;
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
Using a Database
The command to use database is USE. The use database command allows the user to utilize the
mentioned database to work with, where he can create new tables in that database and alter particular
table contents too.
hive> USE EMPdb;
Creating a Table
The command for creating a table is ‘Create’.
Before creating a table, a user must know the following details:
•The create table command allows the user to create a new table with user input
attributes/columns.
•Row format delimited Fields terminated by ‘t’ – This line informsHive that each column in the
file is separated by a tab.
hive> Create table emp(id int, name string, sal float)
> row format delimited
> fields terminated by ‘t’ ;
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
List Tables
The ‘show tables’ command displays the list of tables present in a particular database.
Hive> show Tables;
Once the table names are displayed, the user can select a particular table and work on it. The user can
also create a new table and start processing the required query.
Describe Schema of the Table
The describe command is similar to adesc command in SQL. The describe command displays table
definition/metadata of the mentioned table and the users can see column names and data types
associated to that particular column.
Hive>DESCRIBE emp_table;
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
Load a File from the Local File System
We know that Hadoop is designed to work only on huge datasets instead of few selected rows/columns.
So, the user needs to loadthe entire file to HDFS and process it using Hive commands.
The command used to load file from local system to HDFS is as follows:
Hive>load data local inpath<filename> into table<tablename>
Load File from HDFS
The command used for loading file from HDFS is ‘load data’.
Hive>load data inpath<filename> into table<tablename>
Show Table Contents
Once the selected file is loaded to HDFS,the contents of the table can be checked using the select
statement.
The select * statement of a table displays all the columns which are present in that table.
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
Commonly Used Alter Commands
Some of the commonly used alter commands in Hive are as follows:
Renaming the Current Table:
hive> ALTER TABLE EMP RENAME TO EMP_TABLE
Adding New Columns to an Existing Table:
hive> ALTER TABLE EMP_TABLE ADD COLUMNS (YOJ DATE)
Truncating a Table
The Truncating table command allows users to delete only the content values in the table and not the
table schema.
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
After performing the Truncating command, we can see that the table schema is unaffected but the
contents of the table have been deleted. This is how you can truncate/delete table contents without
affecting the table schema.
Dropping a Database
The command to drop a database is ‘drop database’. The drop database database_name allows users to
drop a particular database from the HDFS memory.
hive> DROP DATABASE EMPdb;
You can send us your queries and feedback in the comment section below
https://acadgild.com/blog/hive-beginners-guide/
ACADGILDACADGILD
https://acadgild.com/blog/hive-beginners-guide/

More Related Content

What's hot

Apache hive introduction
Apache hive introductionApache hive introduction
Apache hive introduction
Mahmood Reza Esmaili Zand
 
Apache Hive
Apache HiveApache Hive
Apache Hive
Ajit Koti
 
Hive Hadoop
Hive HadoopHive Hadoop
Introduction to Apache Hive(Big Data, Final Seminar)
Introduction to Apache Hive(Big Data, Final Seminar)Introduction to Apache Hive(Big Data, Final Seminar)
Introduction to Apache Hive(Big Data, Final Seminar)
Takrim Ul Islam Laskar
 
Working with Hive Analytics
Working with Hive AnalyticsWorking with Hive Analytics
Working with Hive Analytics
Manish Chopra
 
Unit 5-apache hive
Unit 5-apache hiveUnit 5-apache hive
Unit 5-apache hive
vishal choudhary
 
Hive commands
Hive commandsHive commands
Hive commands
Ganesh Sanap
 
Apache Hive - Introduction
Apache Hive - IntroductionApache Hive - Introduction
Apache Hive - Introduction
Muralidharan Deenathayalan
 
Hive(ppt)
Hive(ppt)Hive(ppt)
Hive(ppt)
Abhinav Tyagi
 
SQOOP PPT
SQOOP PPTSQOOP PPT
SQOOP PPT
Dushhyant Kumar
 
Hadoop first mr job - inverted index construction
Hadoop first mr job - inverted index constructionHadoop first mr job - inverted index construction
Hadoop first mr job - inverted index construction
Subhas Kumar Ghosh
 
SQL to Hive Cheat Sheet
SQL to Hive Cheat SheetSQL to Hive Cheat Sheet
SQL to Hive Cheat Sheet
Hortonworks
 
Introductive to Hive
Introductive to Hive Introductive to Hive
Introductive to Hive
Rupak Roy
 
Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7
Rohit Agrawal
 
Apache Hive
Apache HiveApache Hive
Apache Hive
Abhishek Gautam
 
Hive : WareHousing Over hadoop
Hive :  WareHousing Over hadoopHive :  WareHousing Over hadoop
Hive : WareHousing Over hadoop
Chirag Ahuja
 
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Edureka!
 
Introduction to Hbase
Introduction to Hbase Introduction to Hbase
Introduction to Hbase
Rupak Roy
 

What's hot (18)

Apache hive introduction
Apache hive introductionApache hive introduction
Apache hive introduction
 
Apache Hive
Apache HiveApache Hive
Apache Hive
 
Hive Hadoop
Hive HadoopHive Hadoop
Hive Hadoop
 
Introduction to Apache Hive(Big Data, Final Seminar)
Introduction to Apache Hive(Big Data, Final Seminar)Introduction to Apache Hive(Big Data, Final Seminar)
Introduction to Apache Hive(Big Data, Final Seminar)
 
Working with Hive Analytics
Working with Hive AnalyticsWorking with Hive Analytics
Working with Hive Analytics
 
Unit 5-apache hive
Unit 5-apache hiveUnit 5-apache hive
Unit 5-apache hive
 
Hive commands
Hive commandsHive commands
Hive commands
 
Apache Hive - Introduction
Apache Hive - IntroductionApache Hive - Introduction
Apache Hive - Introduction
 
Hive(ppt)
Hive(ppt)Hive(ppt)
Hive(ppt)
 
SQOOP PPT
SQOOP PPTSQOOP PPT
SQOOP PPT
 
Hadoop first mr job - inverted index construction
Hadoop first mr job - inverted index constructionHadoop first mr job - inverted index construction
Hadoop first mr job - inverted index construction
 
SQL to Hive Cheat Sheet
SQL to Hive Cheat SheetSQL to Hive Cheat Sheet
SQL to Hive Cheat Sheet
 
Introductive to Hive
Introductive to Hive Introductive to Hive
Introductive to Hive
 
Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7Advance Hive, NoSQL Database (HBase) - Module 7
Advance Hive, NoSQL Database (HBase) - Module 7
 
Apache Hive
Apache HiveApache Hive
Apache Hive
 
Hive : WareHousing Over hadoop
Hive :  WareHousing Over hadoopHive :  WareHousing Over hadoop
Hive : WareHousing Over hadoop
 
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
 
Introduction to Hbase
Introduction to Hbase Introduction to Hbase
Introduction to Hbase
 

Similar to ACADGILD:: HADOOP LESSON

Apache Hive
Apache HiveApache Hive
Apache Hive
tusharsinghal58
 
6.hive
6.hive6.hive
Hadoop_arunam_ppt
Hadoop_arunam_pptHadoop_arunam_ppt
Hadoop_arunam_ppt
jerrin joseph
 
Windows Azure HDInsight Service
Windows Azure HDInsight ServiceWindows Azure HDInsight Service
Windows Azure HDInsight Service
Neil Mackenzie
 
1. Apache HIVE
1. Apache HIVE1. Apache HIVE
1. Apache HIVE
Anuja Gunale
 
Hive
HiveHive
Hive
HiveHive
Hive
Vetri V
 
Taylor bosc2010
Taylor bosc2010Taylor bosc2010
Taylor bosc2010
BOSC 2010
 
Hadoop MapReduce Fundamentals
Hadoop MapReduce FundamentalsHadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Lynn Langit
 
Hive presentation
Hive presentationHive presentation
Hive presentation
Hitesh Agrawal
 
Session 14 - Hive
Session 14 - HiveSession 14 - Hive
Session 14 - Hive
AnandMHadoop
 
Apache Hive, data segmentation and bucketing
Apache Hive, data segmentation and bucketingApache Hive, data segmentation and bucketing
Apache Hive, data segmentation and bucketing
earnwithme2522
 
Hive
HiveHive
Hive with HDInsight
Hive with HDInsightHive with HDInsight
Hive with HDInsight
Khalid Salama
 
Big data concepts
Big data conceptsBig data concepts
Big data concepts
Serkan Özal
 
Apache Hive and commands PPT Presentation
Apache Hive and commands PPT PresentationApache Hive and commands PPT Presentation
Apache Hive and commands PPT Presentation
Dhanush947555
 
Hive_Pig.pptx
Hive_Pig.pptxHive_Pig.pptx
Hive_Pig.pptx
PAVANKUMARNOOKALA
 
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
Thanh Nguyen
 
Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1
Thanh Nguyen
 
Unit 5
Unit  5Unit  5
Unit 5
Ravi Kumar
 

Similar to ACADGILD:: HADOOP LESSON (20)

Apache Hive
Apache HiveApache Hive
Apache Hive
 
6.hive
6.hive6.hive
6.hive
 
Hadoop_arunam_ppt
Hadoop_arunam_pptHadoop_arunam_ppt
Hadoop_arunam_ppt
 
Windows Azure HDInsight Service
Windows Azure HDInsight ServiceWindows Azure HDInsight Service
Windows Azure HDInsight Service
 
1. Apache HIVE
1. Apache HIVE1. Apache HIVE
1. Apache HIVE
 
Hive
HiveHive
Hive
 
Hive
HiveHive
Hive
 
Taylor bosc2010
Taylor bosc2010Taylor bosc2010
Taylor bosc2010
 
Hadoop MapReduce Fundamentals
Hadoop MapReduce FundamentalsHadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
 
Hive presentation
Hive presentationHive presentation
Hive presentation
 
Session 14 - Hive
Session 14 - HiveSession 14 - Hive
Session 14 - Hive
 
Apache Hive, data segmentation and bucketing
Apache Hive, data segmentation and bucketingApache Hive, data segmentation and bucketing
Apache Hive, data segmentation and bucketing
 
Hive
HiveHive
Hive
 
Hive with HDInsight
Hive with HDInsightHive with HDInsight
Hive with HDInsight
 
Big data concepts
Big data conceptsBig data concepts
Big data concepts
 
Apache Hive and commands PPT Presentation
Apache Hive and commands PPT PresentationApache Hive and commands PPT Presentation
Apache Hive and commands PPT Presentation
 
Hive_Pig.pptx
Hive_Pig.pptxHive_Pig.pptx
Hive_Pig.pptx
 
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
 
Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1Overview of Big data, Hadoop and Microsoft BI - version1
Overview of Big data, Hadoop and Microsoft BI - version1
 
Unit 5
Unit  5Unit  5
Unit 5
 

More from Padma shree. T

ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on railsACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
Padma shree. T
 
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
Padma shree. T
 
ACADGILD:: HADOOP LESSON - File formats in apache hive
ACADGILD:: HADOOP LESSON - File formats in apache hiveACADGILD:: HADOOP LESSON - File formats in apache hive
ACADGILD:: HADOOP LESSON - File formats in apache hive
Padma shree. T
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
Padma shree. T
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
Padma shree. T
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
Padma shree. T
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
Padma shree. T
 
ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON
Padma shree. T
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
Padma shree. T
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
Padma shree. T
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
Padma shree. T
 

More from Padma shree. T (11)

ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on railsACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
ACADGILD:: FRONTEND LESSON -Ruby on rails vs groovy on rails
 
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
ACADGILD:: ANDROID LESSON-How to analyze &amp; manage memory on android like ...
 
ACADGILD:: HADOOP LESSON - File formats in apache hive
ACADGILD:: HADOOP LESSON - File formats in apache hiveACADGILD:: HADOOP LESSON - File formats in apache hive
ACADGILD:: HADOOP LESSON - File formats in apache hive
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
 
ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON
 
ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON ACADGILD:: HADOOP LESSON
ACADGILD:: HADOOP LESSON
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
 
ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON ACADGILD:: ANDROID LESSON
ACADGILD:: ANDROID LESSON
 

Recently uploaded

Parkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptxParkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
AnujVishwakarma34
 
classroom orientation/ back to school...
classroom orientation/ back to school...classroom orientation/ back to school...
classroom orientation/ back to school...
RoselleRaguindin
 
Official MATATAG Weekly Lesson Log Format.pdf
Official MATATAG Weekly Lesson Log Format.pdfOfficial MATATAG Weekly Lesson Log Format.pdf
Official MATATAG Weekly Lesson Log Format.pdf
JaReah
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
SD_Instructional-Design-Frameworkzz.pptx
SD_Instructional-Design-Frameworkzz.pptxSD_Instructional-Design-Frameworkzz.pptx
SD_Instructional-Design-Frameworkzz.pptx
MarkKennethBellen1
 
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdfFINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
HayddieMaeCapunong
 
Lecture Notes Unit4 Chapter13 users , roles and privileges
Lecture Notes Unit4 Chapter13 users , roles and privilegesLecture Notes Unit4 Chapter13 users , roles and privileges
Lecture Notes Unit4 Chapter13 users , roles and privileges
Murugan146644
 
Lecture Notes Unit5 chapter 15 PL/SQL Programming
Lecture Notes Unit5 chapter 15 PL/SQL ProgrammingLecture Notes Unit5 chapter 15 PL/SQL Programming
Lecture Notes Unit5 chapter 15 PL/SQL Programming
Murugan146644
 
matatag classroom orientation school year 2024-2025
matatag classroom orientation school year 2024-2025matatag classroom orientation school year 2024-2025
matatag classroom orientation school year 2024-2025
florrizabombio
 
2024 Winter SWAYAM NPTEL & A Student.pptx
2024 Winter SWAYAM NPTEL & A Student.pptx2024 Winter SWAYAM NPTEL & A Student.pptx
2024 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Why study French Mackenzie Neale PowerPoint
Why study French Mackenzie Neale PowerPointWhy study French Mackenzie Neale PowerPoint
Why study French Mackenzie Neale PowerPoint
nealem1
 
VRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptxVRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptx
Banker and Adjunct Lecturer
 
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
How to Load Custom Field to POS in Odoo 17 - Odoo 17 SlidesHow to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
Celine George
 
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
How to Create an XLS Report in Odoo 17 - Odoo 17 SlidesHow to Create an XLS Report in Odoo 17 - Odoo 17 Slides
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
Celine George
 
Class 6 English Chapter 1 Fables and Folk Stories
Class 6 English Chapter 1 Fables and Folk StoriesClass 6 English Chapter 1 Fables and Folk Stories
Class 6 English Chapter 1 Fables and Folk Stories
sweetygupta8413
 
New features of Maintenance Module in Odoo 17
New features of Maintenance Module in Odoo 17New features of Maintenance Module in Odoo 17
New features of Maintenance Module in Odoo 17
Celine George
 
New Features in Odoo 17 Email Marketing - Odoo Slides
New Features in Odoo 17 Email Marketing - Odoo SlidesNew Features in Odoo 17 Email Marketing - Odoo Slides
New Features in Odoo 17 Email Marketing - Odoo Slides
Celine George
 
Email Marketing in Odoo 17 - Odoo 17 Slides
Email Marketing  in Odoo 17 - Odoo 17 SlidesEmail Marketing  in Odoo 17 - Odoo 17 Slides
Email Marketing in Odoo 17 - Odoo 17 Slides
Celine George
 
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdfPRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
nservice241
 
How to define Related field in Odoo 17 - Odoo 17 Slides
How to define Related field in Odoo 17 - Odoo 17 SlidesHow to define Related field in Odoo 17 - Odoo 17 Slides
How to define Related field in Odoo 17 - Odoo 17 Slides
Celine George
 

Recently uploaded (20)

Parkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptxParkinson Disease & Anti-Parkinsonian Drugs.pptx
Parkinson Disease & Anti-Parkinsonian Drugs.pptx
 
classroom orientation/ back to school...
classroom orientation/ back to school...classroom orientation/ back to school...
classroom orientation/ back to school...
 
Official MATATAG Weekly Lesson Log Format.pdf
Official MATATAG Weekly Lesson Log Format.pdfOfficial MATATAG Weekly Lesson Log Format.pdf
Official MATATAG Weekly Lesson Log Format.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
SD_Instructional-Design-Frameworkzz.pptx
SD_Instructional-Design-Frameworkzz.pptxSD_Instructional-Design-Frameworkzz.pptx
SD_Instructional-Design-Frameworkzz.pptx
 
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdfFINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
FINAL MATATAG PE and Health CG 2023 Grades 4-10.pdf
 
Lecture Notes Unit4 Chapter13 users , roles and privileges
Lecture Notes Unit4 Chapter13 users , roles and privilegesLecture Notes Unit4 Chapter13 users , roles and privileges
Lecture Notes Unit4 Chapter13 users , roles and privileges
 
Lecture Notes Unit5 chapter 15 PL/SQL Programming
Lecture Notes Unit5 chapter 15 PL/SQL ProgrammingLecture Notes Unit5 chapter 15 PL/SQL Programming
Lecture Notes Unit5 chapter 15 PL/SQL Programming
 
matatag classroom orientation school year 2024-2025
matatag classroom orientation school year 2024-2025matatag classroom orientation school year 2024-2025
matatag classroom orientation school year 2024-2025
 
2024 Winter SWAYAM NPTEL & A Student.pptx
2024 Winter SWAYAM NPTEL & A Student.pptx2024 Winter SWAYAM NPTEL & A Student.pptx
2024 Winter SWAYAM NPTEL & A Student.pptx
 
Why study French Mackenzie Neale PowerPoint
Why study French Mackenzie Neale PowerPointWhy study French Mackenzie Neale PowerPoint
Why study French Mackenzie Neale PowerPoint
 
VRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptxVRS An Strategic Approch to Meet Need of Organisation.pptx
VRS An Strategic Approch to Meet Need of Organisation.pptx
 
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
How to Load Custom Field to POS in Odoo 17 - Odoo 17 SlidesHow to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
 
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
How to Create an XLS Report in Odoo 17 - Odoo 17 SlidesHow to Create an XLS Report in Odoo 17 - Odoo 17 Slides
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
 
Class 6 English Chapter 1 Fables and Folk Stories
Class 6 English Chapter 1 Fables and Folk StoriesClass 6 English Chapter 1 Fables and Folk Stories
Class 6 English Chapter 1 Fables and Folk Stories
 
New features of Maintenance Module in Odoo 17
New features of Maintenance Module in Odoo 17New features of Maintenance Module in Odoo 17
New features of Maintenance Module in Odoo 17
 
New Features in Odoo 17 Email Marketing - Odoo Slides
New Features in Odoo 17 Email Marketing - Odoo SlidesNew Features in Odoo 17 Email Marketing - Odoo Slides
New Features in Odoo 17 Email Marketing - Odoo Slides
 
Email Marketing in Odoo 17 - Odoo 17 Slides
Email Marketing  in Odoo 17 - Odoo 17 SlidesEmail Marketing  in Odoo 17 - Odoo 17 Slides
Email Marketing in Odoo 17 - Odoo 17 Slides
 
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdfPRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
 
How to define Related field in Odoo 17 - Odoo 17 Slides
How to define Related field in Odoo 17 - Odoo 17 SlidesHow to define Related field in Odoo 17 - Odoo 17 Slides
How to define Related field in Odoo 17 - Odoo 17 Slides
 

ACADGILD:: HADOOP LESSON

  • 1. ACADGILDACADGILD INTRODUCTION Why was Hive introduced? Few years ago, Hadoop came into existence for solving queries on huge structured, Semi-structured, and unstructured datasets. Hadoop is considered to be the bestsolution to store and process those huge datasets, because of its advantages like scalability, less infrastructure costs(commodity hardware), data security(replication factor) and MapReduce, which is the best programming structure. In the beginning big organizations like Facebook, who received huge datasets of raw data on a daily basis, were writing Python scripts to ingest data into the Oracle databases. As the amount of data kept increasing, it was not practical to continue writing lengthy and complex programs. So to handle huge datasets and to process them, Facebook came out with Hive, a language similar to SQL, where there was no need for programmers to write complex programs anymore. Apache introduced Hive as an open-source and is currently one of the most used Hadoop tools in many organizations. What is Hive? Hive is a data warehouse solution built on top of Hadoop for managing huge amount of data stored in HDFS. It provides an SQL-like query language called HiveQL. Hive is designed in such a way that it allows easy data summarization, ad-hoc querying, and analysis of Big Data to Process structured data in Hadoop cluster. Hive uses HDFS for storage, but stores all the meta information about the database and table in Derby or MySQL database. HIVE Vs SQL HIVE SQL Hive is a SQL-like scripting language built on MapReduce According to ANSI, SQL is the standard language for RDMBS, used to communicate with databases Used for analytics Used for transactional processing(OLTP) & analytics Data per query in PBs Data per query in GBs Faster execution while performing analytics on Huge data sets compared to SQL Slower execution while performing analytics on huge data sets compared to HIVE No Normalization required Supports Normalization https://acadgild.com/blog/hive-beginners-guide/
  • 2. ACADGILDACADGILD How to install Hive? To install Hive, please follow the procedure in the below link: https://drive.google.com/open?id=0B1QaXx7tpw3SMDktdk5RbHk1MVE Hive Shell Hive provides a default interface, where it allows users to run Hive commands. The CLI (Command Line Interface) is the default Hive shell service which allows users to work on Hive programs. The following are the commands used to start the Hive shell: Creating a Database The purpose of creating a database before creating a table is that the database in Hive is a namespace, where a table or collection of tables should be placed to work on Hive queries. Here the database and the schema represents the same category. The command to create a database are as follows: hive>CREATE DATABASEEMPdb; Listing Databases The show databases command displays the list of databases in HDFS so that the user can select the database he wants to work with. hive> SHOW DATABASES; https://acadgild.com/blog/hive-beginners-guide/
  • 3. ACADGILDACADGILD Using a Database The command to use database is USE. The use database command allows the user to utilize the mentioned database to work with, where he can create new tables in that database and alter particular table contents too. hive> USE EMPdb; Creating a Table The command for creating a table is ‘Create’. Before creating a table, a user must know the following details: •The create table command allows the user to create a new table with user input attributes/columns. •Row format delimited Fields terminated by ‘t’ – This line informsHive that each column in the file is separated by a tab. hive> Create table emp(id int, name string, sal float) > row format delimited > fields terminated by ‘t’ ; https://acadgild.com/blog/hive-beginners-guide/
  • 4. ACADGILDACADGILD List Tables The ‘show tables’ command displays the list of tables present in a particular database. Hive> show Tables; Once the table names are displayed, the user can select a particular table and work on it. The user can also create a new table and start processing the required query. Describe Schema of the Table The describe command is similar to adesc command in SQL. The describe command displays table definition/metadata of the mentioned table and the users can see column names and data types associated to that particular column. Hive>DESCRIBE emp_table; https://acadgild.com/blog/hive-beginners-guide/
  • 5. ACADGILDACADGILD Load a File from the Local File System We know that Hadoop is designed to work only on huge datasets instead of few selected rows/columns. So, the user needs to loadthe entire file to HDFS and process it using Hive commands. The command used to load file from local system to HDFS is as follows: Hive>load data local inpath<filename> into table<tablename> Load File from HDFS The command used for loading file from HDFS is ‘load data’. Hive>load data inpath<filename> into table<tablename> Show Table Contents Once the selected file is loaded to HDFS,the contents of the table can be checked using the select statement. The select * statement of a table displays all the columns which are present in that table. https://acadgild.com/blog/hive-beginners-guide/
  • 6. ACADGILDACADGILD Commonly Used Alter Commands Some of the commonly used alter commands in Hive are as follows: Renaming the Current Table: hive> ALTER TABLE EMP RENAME TO EMP_TABLE Adding New Columns to an Existing Table: hive> ALTER TABLE EMP_TABLE ADD COLUMNS (YOJ DATE) Truncating a Table The Truncating table command allows users to delete only the content values in the table and not the table schema. https://acadgild.com/blog/hive-beginners-guide/
  • 7. ACADGILDACADGILD After performing the Truncating command, we can see that the table schema is unaffected but the contents of the table have been deleted. This is how you can truncate/delete table contents without affecting the table schema. Dropping a Database The command to drop a database is ‘drop database’. The drop database database_name allows users to drop a particular database from the HDFS memory. hive> DROP DATABASE EMPdb; You can send us your queries and feedback in the comment section below https://acadgild.com/blog/hive-beginners-guide/