title: Hive on OS X EL Capitan: Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set
body: <p>I'm trying to start <strong>Hive 2.1.1</strong> on my OSX EL Capitan:</p>
  
  <p>I have pre installed and working <strong>Hadoop-2.7.3</strong></p>
  
  <p>Also my .bash_profile:</p>
  
  <pre><code>export JAVA_HOME=$(/usr/libexec/java_home)
  export HADOOP_HOME=/Users/dev/hadoop-2.7.3
  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=/Users/dev/apache-hive-2.1.1
  export PATH=$PATH:$HIVE_HOME/bin
  export CLASSPATH=$CLASSPATH:/Users/dev/hadoop-2.7.3/lib/*:.
  export CLASSPATH=$CLASSPATH:/Users/dev/apache-hive-2.1.1/lib/*:.
  </code></pre>
  
  <p>Also I added to ~/apache-location/bin/hive-config.sh following line:</p>
  
  <pre><code>export HADOOP_HOME=/Users/dev/hadoop-2.7.3
  </code></pre>
  
  <p>But when I try </p>
  
  <pre><code>$ bin/hive
  </code></pre>
  
  <p>I still have following problem:
  Cannot find hadoop installation: 
  <code>$HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path</code></p>
  
  <p>I have already put same exports in:</p>
  
  <pre><code>~/.profile
  ~/.bashrc
  </code></pre>
  
  <p>But it does not help..
  What have I missed? Any ideas?</p>