HIVE Installation & Setup Guide



Pre-requisites
  1. Ubuntu / CentOS
  2. Hadoop 1.x/ 2.x , I prefer to install with 2.x
Step –> 1: Download and Install
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

Step –> 2:

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

Popular posts from this blog

Cloudera Data Hub: Where Agility Meets Control

Architectural Patterns for Near Real-Time Data Processing with Apache Hadoop

How-to: Use Parquet with Impala, Hive, Pig, and MapReduce

Big Data Trendz