mysql - Hive:java.sql.SQLSyntaxErrorException:表'metastore.dbs'不存在
问题描述
我正在使用 hive 版本:3.2.1 和 hadoop 版本:3.2.1 和 metastore 数据库:mysql
尝试在调试模式下运行 hive 时:
$hive -hiveconf hive.root.logger=DEBUG,console
我收到错误
metastore.dbs table does not exists.
Caused by: java.sql.SQLSyntaxErrorException: Table 'metastore.dbs' doesn't exist
下面是我的 hive-site.xml 的片段
<property>
<name>javax.jdo.option.ConnectionURL</name>
#<value>jdbc:derby:;databaseName=metastore_db;create=true</value>
<value>jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true</value>
<description>
JDBC connect string for a JDBC metastore.
To use SSL to encrypt/authenticate the connection, provide database-specific SSL flag in the connection URL.
For example, jdbc:postgresql://myhost/db?ssl=true for postgres database.
</description>
</property>
请帮助解决错误。
解决方案
推荐阅读
- pine-script - Pinescprit-如何给线条上色?
- c - Cs50 凯撒 Check50 失败
- linux - 我在 bash 中的 case 命令中遇到模式匹配问题
- javascript - 点击按钮将第二次点击数据发送到 db 而不是第一个 php/ajax
- c# - 如何从列表映射
列出 在 AutoMapper C# 中? - javascript - 如何在 Chrome 扩展程序中对 popup.html 进行动态更改
- c - 可视化枚举值
- vhdl - 7 段显示器上的 VHDL 滚动世界
- java - 微光动画在加载 RecyclerView 时不会停止
- r - as.vector(x, mode) 中的 K-Means 聚类错误:无法将“闭包”类型强制为“任何”类型的向量