Reputation: 668
I was just trying to setup Standalone Metastore 3.0, however seems like it requires also Hadoop. My understanding was that the whole point for standalone metastore that is just a service which doesn't require Hive or Hadoop. Thus my question is, if it's possible to run Metastore 3.0 without Hadoop?
When I try to run metastore service, getting following error :
Cannot find hadoop installation: \$HADOOP_HOME or \$HADOOP_PREFIX must be set or hadoop must be in the path
Here is the code in the bash script that checks hadoop installation:
# check for hadoop in the path
HADOOP_IN_PATH=`which hadoop 2>/dev/null`
if [ -f ${HADOOP_IN_PATH} ]; then
HADOOP_DIR=`dirname "$HADOOP_IN_PATH"`/..
fi
# HADOOP_HOME env variable overrides hadoop in the path
HADOOP_HOME=${HADOOP_HOME:-${HADOOP_PREFIX:-$HADOOP_DIR}}
if [ "$HADOOP_HOME" == "" ]; then
echo "Cannot find hadoop installation: \$HADOOP_HOME or \$HADOOP_PREFIX must be set or hadoop must be in the path";
exit 4;
fi
Upvotes: 2
Views: 1016
Reputation: 5247
According to this article,
"...while I did manage to run the Hive Standalone Metastore without installing hadoop, I did have to install (but not run) hadoop in order to use the schematool provided with hive for creating the hive RDMBS schema. This is due to library dependencies."
Upvotes: 4