我只是想设置独立的metastore3.0,但是它似乎也需要hadoop。我的理解是,独立元存储的全部要点就是不需要hive或hadoop的服务。因此,我的问题是,如果没有hadoop可以运行metastore3.0?
尝试运行metastore服务时,出现以下错误:
找不到hadoop安装:必须设置$hadoop\u home或$hadoop\u prefix,或者hadoop必须位于路径中
下面是bash脚本中检查hadoop安装的代码:
# 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
暂无答案!
目前还没有任何答案,快来回答吧!