我试图在我的OSX EL Capitan上启动 Hive 2.1.1 :
我已预先安装并正在使用 Hadoop-2.7.3
我的.bash_profile:
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/*:.
我还在〜/ apache-location / bin / hive-config.sh中添加了以下行:
export HADOOP_HOME=/Users/dev/hadoop-2.7.3
但是当我尝试
时$ bin/hive
我仍有以下问题:
找不到hadoop安装:
$HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path
我已将相同的导出放入:</ p>
~/.profile
~/.bashrc
但它没有帮助.. 我错过了什么?有什么想法吗?