Issues with installing Hive on Ubuntu: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the
You need to add HADOOP_HOME in hive-config.sh file.
user@ubuntu:~$ cd /usr/local/hive/binuser@ubuntu:~$ sudo gedit hive-config.sh
Go to the line where following statements are written in file:
HIVE_CONF_DIR="${HIVE_CONF_DIR:-$HIVE_HOME/conf"export HIVE_CONF_DIR=$HIVE_CONF_DIRexport HIVE_AUX_JARS_PATH=$HIVE_AUX_JARS_PATH
Below this write the following
export HADOOP_HOME=/usr/local/hadoop-2.7.1
Need to setup correct HADOOP_HOME on conf/hive-env.sh file as mentioned below
# Set HADOOP_HOME to point to a specific hadoop install directory HADOOP_HOME={your hadoop home location}#e.g. as below HADOOP_HOME=/opt/hadoop-2.6.0