当前位置:   article > 正文

CDH集群hive初始化元数据库失败

CDH集群hive初始化元数据库失败
oracle数据库操作:

报错如下:命令 (Validate Hive Metastore schema (237)) 已失败
截图如下:
在这里插入图片描述
后台日志部分摘录:

WARNING: Use “yarn jar” to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p5253.21605619/jars/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p5253.21605619/jars/slf4j-log4j12-1.7.25.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]
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version, Cause:ORA-00942: table or view does not exist
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version, Cause:ORA-00942: table or view does not exist at org.apache.hadoop.hive.metastore.CDHMetaStoreSchemaInfo.getMetaStoreSchemaVersion(CDHMetaStoreSchemaInfo.java:342)
at org.apache.hive.beeline.HiveSchemaTool.validateSchemaVersions(HiveSchemaTool.java:685)
at org.apache.hive.beeline.HiveSchemaTool.doValidate(HiveSchemaTool.java:578)
at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:313)
at org.apache.hadoop.util.RunJar.main(RunJar.java:227)
*** schemaTool failed ***

记录一
问题出现:
链接的数据库和用户用的和刚开始初始化cm用的数据库用户是同一个,初始化失败。
解决办法:
单独搞一个用户给hive。

记录二

问题出现:
链接的数据库和用户没给管理员权限
解决办法:
给用户增删改查的权限。

 grant connect,resource to 用户名
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/484009
推荐阅读
相关标签
  

闽ICP备14008679号