Tuesday, 18 August 2015

Hive Installation

Before you start installing hive, you should have already installed hadoop.
Step 1: Download Hive from apache website (check with comparability with hadoop version)
Step 2: Go to downloads and extract hive.tar.gz
Step 3: Copy the extracted jar into /home/hduser/hive.
Step 4: Edit /etc/bash.bashrc
                $gedit bash.bashrc
                $sudo gedit  /etc/bash.bashrc

                $sudo leafpad /etc/bash.bashrc
Step 5: Set Home Path
                export HADOOP_HOME=/home/hduser/hadoop
                export HIVE_HOME=/home/hduser/hive
                export PATH=$PATH:$HADOOP_HOME/bin
                export PATH=$PATH:$HIVE_HOME/bin
Step 6: Save and Close
Step 7: Open terminal and enter hive 
Now you can enter hive shell.

No comments:

Post a Comment