Skip to content

Commit

Permalink
hive needs HADOOP_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Lee committed Jun 30, 2014
1 parent 4008282 commit 3a19db3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/templates/hadoop-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ start() {
fi

echo Starting hiveserver
export HADOOP_HOME=@HADOOP_HOME@
if [[ "@HADOOP_VERSION@" == *cdh* ]]
then
export MAPRED_DIR=@HADOOP_HOME@/share/hadoop/mapreduce2
fi
@HIVE_HOME@/bin/hive --service hiveserver &> "@PROJECT_HOME@/logs/hiveserver.log" &
}

Expand Down

0 comments on commit 3a19db3

Please sign in to comment.