Home:ALL Converter>$HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path

$HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path

Ask Time:2015-10-09T17:15:57         Author:user1393608

Json Formatter

I downloaded hive source and used following command for building.

mvn clean install -Phadoop-2,dist -DskipTests

Then I went to bin directory and executed hive using

bin # ./hive
Missing Hive Execution Jar: /tools/hive/lib/hive-exec-*.jar

To solve this I set

export HIVE_HOME=/tools/hive/packaging/target/apache-hive-2.0.0-SNAPSHOT-bin/apache-hive-2.0.0-SNAPSHOT-bin
export PATH=$HIVE_HOME/bin:$PATH

and again

bin # ./hive
Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path

I have no hadoop on my machine. Can I run hive cli in standalone mode without Hadoop?

What is the general practice of using Hive cli?

Author:user1393608,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/33034408/hadoop-home-or-hadoop-prefix-must-be-set-or-hadoop-must-be-in-the-path
yy