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 用户名