Installing Hive
before you start installing hive, you should have already installed hadoop. If not please check out hadoop installation post.
Steps to install Hive.
1. Download Hive from Hive 0.11.0.
If you want to install other version of Hive, check its comparability
with hadoop version that you have already installed. In my case i am
using hadoop 1.0.3
2. Go to downloads folder, right click and extract hive-0.11.0.tar.gz.
3. Copy the extracted jar into /home/hduser/hive.
4. Edit /etc/bash.bashrc and export HADOOP_HOME if not set.
on Lubuntu
sudo leafpad /etc/bash.bashrc
on ubuntu
sudo gedit /etc/bash.bashrc
for people new to linux, leafpad and gedit are two editors to edit text files similar to notepad in windows.
5. Insert following statement in file.
export HADOOP_HOME=/home/hduser/hadoop
export HIVE_HOME= /home/hduser/hive
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HIVE_HOME/bin
6. Save the file and close it. Now close the terminal and reopen it.
7. Type hive and then enter. if your installation is right , you will log into hive shell.
Now you can run
hive queries on this shell. This installation
considers embedded meta-store of hive(on derby database). In coming
posts we will learn how to install hive in distributed mode.
No comments:
Post a Comment