HIVE Installation & Setup Guide
Pre-requisites
- Ubuntu / CentOS
- Hadoop 1.x/ 2.x , I prefer to install with 2.x
Download the Hive from the Apache Download Mirror and i place it in /home/bigdata/Installations/ directory.
$ cd
/home/bigdata/Installation
$ wget
http://redrockdigimark.com/apachemirror/hive/stable/apache-hive-1.2.1-bin.tar.gz
( i preferred to download hive-1.2.1.tar.gz,
as it is stable version)
$ sudo tar xzf
hive-1.2.1.tar.gz
After downloading and installation. Now we are moving to edit hive-env.sh file for Configuration. To configure hive, there I have installed and give permission to bigdata.
In $HIVE_HOME/conf/hive-env.sh
export JAVA_HOME=/opt/jdk1.80_10
Step –> 3:
add hbase path to bashrc
$
gedit .bashrc
and
add following lines to it
#HIVE
export
HIVE_HOME=/home/bigdata/Installations/hive-1.2.1/
export
PATH=$PATH:$HIVE_HOME/bin
Step –> 4:
Restart the terminal and start
hadoop, then start hive
$
hive
>show
tables;
(to
test hive installation)
Happy Hadooping !!
Comments
Post a Comment
thank you for your feedback