首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HiveCli - SessionHiveMetaStoreClient连接已经关闭

HiveCli - SessionHiveMetaStoreClient连接已经关闭
EN

Stack Overflow用户
提问于 2022-01-17 06:44:33
回答 1查看 227关注 0票数 0

在运行蜂箱时,我会收到以下错误。

代码语言:javascript
复制
>C:\HIVE\bin>hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/HIVE/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Connecting to jdbc:hive2://
Error applying authorization policy on hive configuration: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Beeline version 2.1.0 by Apache Hive
Error applying authorization policy on hive configuration: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Connection is already closed.
EN

回答 1

Stack Overflow用户

发布于 2022-03-10 15:44:28

错误指示您尚未启动Metastore服务,因此必须使用以下命令启动它:

代码语言:javascript
复制
hive --service metastore &
hive --service hiveserver2 &

将生成单元会话ID,您可以编写jps来检查两个运行的Jars是否作为Java运行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70737445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档