Hope you are doing well

Please follow the steps given below:

1) Download the hive 0.13.0 tar ball in the home directory from the link given below


2) Extract the tar ball in the home directory itself(i.e. /home/user/) not in the $HADOOP_HOME/etc directory

tar -xvf apache-hive-0.13.0-bin.tar.gz

3) Open the .bashrc file and update hive home as per given in the screen-shot

vi ~/.bashrc

export JAVA_HOME=/home/tom/jdk1.7.0_79
export PATH=$PATH:$JAVA_HOME/bin

export HADOOP_HOME=/home/tom/hadoop-2.7.2
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

export HIVE_HOME=/home/tom/apache-hive-0.13.0-bin
export PATH=$PATH:$HIVE_HOME/bin

4) Apply the changes

source ~/.bashrc

5) Check hive version

hive --version

6) Open hive shell and test it

hive


I hope this will resolve the query

Please let me know if you have any further issue regarding this

Feel free to contact us in case you have any query.
 
Kindly share your feedback by clicking on either of the smiley's.