hadoop HiveCli - SessionHiveMetaStoreClient连接已关闭

laximzn5  于 2022-11-01  发布在  Hadoop
关注(0)|答案(1)|浏览(164)

运行配置单元时,出现以下错误

  1. >C:\HIVE\bin>hive
  2. SLF4J: Class path contains multiple SLF4J bindings.
  3. SLF4J: Found binding in [jar:file:/C:/HIVE/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  4. SLF4J: Found binding in [jar:file:/C:/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  5. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  6. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
  7. ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
  8. Connecting to jdbc:hive2://
  9. 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
  10. Beeline version 2.1.0 by Apache Hive
  11. 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
  12. Connection is already closed.
vuv7lop3

vuv7lop31#

该错误表明您尚未启动 *Metastore服务 *,因此您必须使用以下命令启动它:

  1. hive --service metastore &
  2. hive --service hiveserver2 &

将生成配置单元会话ID,您可以编写jps来检查2个运行Jar是否作为Java服务运行。

相关问题