Posts

Showing posts from January, 2017

Hadoop - Installing Hive with Derby

Image
Summary
This is my personal experience and summary steps to install Hive and Derby

Pre-requisite
Download HIVE from Apache (I am using Hive 2.0.0)Download Derby from Apache (I am using Derby 10.12.1.1)Make sure Java 1.7 is installedHadoop is configured and working (I am using Hadoop 2.7.1)
Installing Hive
1. Move the Hive installer to a directory. For this example, I had create a folder /usr/local/hive for Hive

cp apache-hive-2.0.0-bin.tar.gz /usr/local/hive
2. Unpackage Hive

tar -xzvf apache-hive-2.0.0-bin.tar.gz
3. Set Hive environment variable

You will need to set the following in the environment

export HIVE_HOME=/usr/local/hive/apache-hive-2.0.0-bin
export PATH=$HIVE_HOME/bin:$PATH
So, you can do the following to export Hive variable to the environment when user log in

a. Create a  /etc/profile.d/hive.sh

sudo vi /etc/profile.d/hive.sh
b. Add the following in /etc/profile.d/hive.sh

export HIVE_HOME=/usr/local/hive/apache-hive-2.0.0-bin
export PATH=$HIVE_HOME/bin:$PATH
c. Source thi…