Issues with installing Hive on Ubuntu: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the
<p>I have installed Hadoop on my Ubuntu EC2 instance and have gone through all the steps for installing hive following this tutorial: <a href="http://www.tutorialspoint.com/hive/hive_installation.htm" rel="nofollow">http://www.tutorialspoint.com/hive/hive_installation.htm</a></p>

<p>However, when I go to launch hive I get the following error message:</p>

<p>"Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path"</p>

<p>My bashrc file reads this:</p>

<pre><code>export JAVA_HOME=/usr
export PATH=$PATH:$JAVA_HOME/bin
export HADOOP_HOME=/usr/local/hadoop-2.7.1
export PATH=$PATH:$HADOOP_HOME/bin/


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_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin


export HIVE_HOME=/usr/local/hive
export PATH=$PATH:$HIVE_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/local/hadoop-2.7.1/lib/*:.
export CLASSPATH=$CLASSPATH:/usr/local/hive/lib/*:.

export DERBY_HOME=/usr/local/derby
export PATH=$PATH:$DERBY_HOME/bin
</code></pre>

<p>Does anyone have any suggestions on how to fix this? I presume it's an issue with how I have linked my Hadoop and hive,</p>

<p>Thanks in advance,</p>

<p>Maeve</p>