SlideShare a Scribd company logo
1 of 5
Infinity
dwivedishashwat@gmail.com
Shashwat Shriparv
Hive with Hadoop configuration document
Requirements
• Java 1.6
• Hadoop 0.20.x.
Installing Hive from a Stable Release
Start by downloading the most recent stable release of Hive from one of the Apache download
mirrors :
http://hive.apache.org/releases.html
We can directly download from site or issue command through terminsl to download as follows
:
wgethttp://ftp.wayne.edu/apache/hive/stable/hive-0.8.1.tar.gz
After downloading complete issue following command :
tar -xzf hive-0.8.1.tar.gz
open hive-0.8.1/conf/hive-env.sh
# Set HADOOP_HOME to point to a specific hadoop install directory
export HADOOP_HOME=/home/shashwat/Hadoop/hadoop-0.20.205
export HADOOP_CONF_DIR=/home/shashwat/Hadoop/hadoop-0.20.205/conf
# Hive Configuration Directory can be controlled by:
export HIVE_CONF_DIR=/home/shashwat/Hadoop/hive-0.7.1/conf
# Folder containing extra ibraries required for hive compilation/execution can be controlled by:
export HIVE_AUX_JARS_PATH=/home/shashwat/Hadoop/hadoop-
0.20.205/lib:/home/shashwat/Hadoop/hbase-0.90.4/lib:/home/shashwat/Hadoop/hive-
0.7.1/lib:/home/shashwat/Hadoop/hbase-0.90.4/hbase-0.90.4.jar
Then open hive-site.xml, in this file you will find a property called “hive.aux.jars.path” as
follows :
<property>
<name>hive.aux.jars.path</name>
<value>file:///home/shashwat/Hadoop/hive-0.7.1/lib/hive-hbase-handler-
0.7.1.jar,file:///home/shashwat/Hadoop/hive-0.7.1/lib/hbase-
0.90.4.jar,file:///home/shashwat/Hadoop/hive-0.7.1/lib/zookeeper-3.3.1.jar</value>
</property>
Version compatibility with hadoop and hive :
Hive
Version
Hadoop
Version
Configuration Parameters
0.4 0.18 --hadoop-version 0.18
0.5 0.20
--hadoop-version 0.20 --hive-versions 0.5 --
ami-version 1.0
0.5 and 0.7 0.20 --hadoop-version 0.20 --hive-versions 0.5,0.7
Hive
Version
Hadoop
Version
Configuration Parameters
--ami-version 1.0
0.7 0.20
--hadoop-version 0.20 --hive-versions 0.7 --
ami-version 1.0
0.7.1 0.20
--hadoop-version 0.20 --hive-versions 0.7.1 -
-ami-version 1.0
0.7.1 0.20.205
--hadoop-version 0.20 --hive-versions 0.7.1 -
-ami-version 2.0
0.7.1.1 0.20.205
--hadoop-version 0.20.205 --hive-versions
0.7.1.1 --ami-version 2.0
0.7.1.2 0.20.205
--hadoop-version 0.20.205 --hive-versions
0.7.1.2 --ami-version 2.0
0.7.1.3 0.20.205
--hadoop-version 0.20.205 --hive-versions
0.7.1.3 --ami-version 2.0
0.7.1.4 0.20.205
--hadoop-version 0.20.205 --hive-versions
0.7.1.4 --ami-version 2.0
After configuration complete issue these commmands from terminal :
bin/hive - -service hiveserver : it will start the thrift server :
then open new terminal and issue commmand
bin/hive : this will give you hive terminal where you can execute commands like
create table
show tables etc.
More configuration options
Hive Configuration Variables used to interact with Hadoop
Variable Name Description Default Value
hadoop.bin.path
The location of hadoop script
which is used to submit jobs to
hadoop when submitting through a
separate jvm.
$HADOOP_HOME/bin/hadoop
hadoop.config.dir
The location of the configuration
directory of the hadoop installation
$HADOOP_HOME/conf

More Related Content

More from Shashwat Shriparv (20)

Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptx
 
LibreOffice 7.3.pptx
LibreOffice 7.3.pptxLibreOffice 7.3.pptx
LibreOffice 7.3.pptx
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
Suspending a Process in Linux.pptx
Suspending a Process in Linux.pptxSuspending a Process in Linux.pptx
Suspending a Process in Linux.pptx
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
Command Seperators.pptx
Command Seperators.pptxCommand Seperators.pptx
Command Seperators.pptx
 
Hive query optimization infinity
Hive query optimization infinityHive query optimization infinity
Hive query optimization infinity
 
H base
H baseH base
H base
 
My sql
My sqlMy sql
My sql
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Introduction to apache hadoop
Introduction to apache hadoopIntroduction to apache hadoop
Introduction to apache hadoop
 
Next generation technology
Next generation technologyNext generation technology
Next generation technology
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
C# interview quesions
C# interview quesionsC# interview quesions
C# interview quesions
 
I pv6
I pv6I pv6
I pv6
 
Inventory system
Inventory systemInventory system
Inventory system
 
Intermediate code generation1
Intermediate code generation1Intermediate code generation1
Intermediate code generation1
 
Information system availibility control
Information system availibility controlInformation system availibility control
Information system availibility control
 

Recently uploaded

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Hive hadoop configuration

  • 2. Requirements • Java 1.6 • Hadoop 0.20.x. Installing Hive from a Stable Release Start by downloading the most recent stable release of Hive from one of the Apache download mirrors : http://hive.apache.org/releases.html We can directly download from site or issue command through terminsl to download as follows : wgethttp://ftp.wayne.edu/apache/hive/stable/hive-0.8.1.tar.gz After downloading complete issue following command : tar -xzf hive-0.8.1.tar.gz open hive-0.8.1/conf/hive-env.sh # Set HADOOP_HOME to point to a specific hadoop install directory
  • 3. export HADOOP_HOME=/home/shashwat/Hadoop/hadoop-0.20.205 export HADOOP_CONF_DIR=/home/shashwat/Hadoop/hadoop-0.20.205/conf # Hive Configuration Directory can be controlled by: export HIVE_CONF_DIR=/home/shashwat/Hadoop/hive-0.7.1/conf # Folder containing extra ibraries required for hive compilation/execution can be controlled by: export HIVE_AUX_JARS_PATH=/home/shashwat/Hadoop/hadoop- 0.20.205/lib:/home/shashwat/Hadoop/hbase-0.90.4/lib:/home/shashwat/Hadoop/hive- 0.7.1/lib:/home/shashwat/Hadoop/hbase-0.90.4/hbase-0.90.4.jar
  • 4. Then open hive-site.xml, in this file you will find a property called “hive.aux.jars.path” as follows : <property> <name>hive.aux.jars.path</name> <value>file:///home/shashwat/Hadoop/hive-0.7.1/lib/hive-hbase-handler- 0.7.1.jar,file:///home/shashwat/Hadoop/hive-0.7.1/lib/hbase- 0.90.4.jar,file:///home/shashwat/Hadoop/hive-0.7.1/lib/zookeeper-3.3.1.jar</value> </property> Version compatibility with hadoop and hive : Hive Version Hadoop Version Configuration Parameters 0.4 0.18 --hadoop-version 0.18 0.5 0.20 --hadoop-version 0.20 --hive-versions 0.5 -- ami-version 1.0 0.5 and 0.7 0.20 --hadoop-version 0.20 --hive-versions 0.5,0.7
  • 5. Hive Version Hadoop Version Configuration Parameters --ami-version 1.0 0.7 0.20 --hadoop-version 0.20 --hive-versions 0.7 -- ami-version 1.0 0.7.1 0.20 --hadoop-version 0.20 --hive-versions 0.7.1 - -ami-version 1.0 0.7.1 0.20.205 --hadoop-version 0.20 --hive-versions 0.7.1 - -ami-version 2.0 0.7.1.1 0.20.205 --hadoop-version 0.20.205 --hive-versions 0.7.1.1 --ami-version 2.0 0.7.1.2 0.20.205 --hadoop-version 0.20.205 --hive-versions 0.7.1.2 --ami-version 2.0 0.7.1.3 0.20.205 --hadoop-version 0.20.205 --hive-versions 0.7.1.3 --ami-version 2.0 0.7.1.4 0.20.205 --hadoop-version 0.20.205 --hive-versions 0.7.1.4 --ami-version 2.0 After configuration complete issue these commmands from terminal : bin/hive - -service hiveserver : it will start the thrift server : then open new terminal and issue commmand bin/hive : this will give you hive terminal where you can execute commands like create table show tables etc. More configuration options Hive Configuration Variables used to interact with Hadoop Variable Name Description Default Value hadoop.bin.path The location of hadoop script which is used to submit jobs to hadoop when submitting through a separate jvm. $HADOOP_HOME/bin/hadoop hadoop.config.dir The location of the configuration directory of the hadoop installation $HADOOP_HOME/conf