日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Configured default database db1 doesn‘t exist in catalog myhive.

發布時間:2023/12/31 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Configured default database db1 doesn‘t exist in catalog myhive. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

去hive檢查會發現db1是存在的.

?但是啟動 flink sql client 的時候會發現提示myhive中找到db1的問題

Exception in thread "main" org.apache.flink.table.client.SqlClientException: Unexpected exception. This is a bug. Please consider filing an issue.
?? ?at org.apache.flink.table.client.SqlClient.main(SqlClient.java:208)
Caused by: org.apache.flink.table.client.gateway.SqlExecutionException: Could not create execution context.
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:878)
?? ?at org.apache.flink.table.client.gateway.local.LocalExecutor.openSession(LocalExecutor.java:226)
?? ?at org.apache.flink.table.client.SqlClient.start(SqlClient.java:108)
?? ?at org.apache.flink.table.client.SqlClient.main(SqlClient.java:196)
Caused by: org.apache.flink.table.catalog.exceptions.CatalogException: Configured default database db1 doesn't exist in catalog myhive.
?? ?at org.apache.flink.table.catalog.hive.HiveCatalog.open(HiveCatalog.java:250)
?? ?at org.apache.flink.table.catalog.CatalogManager.registerCatalog(CatalogManager.java:190)
?? ?at org.apache.flink.table.api.internal.TableEnvironmentImpl.registerCatalog(TableEnvironmentImpl.java:338)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.lambda$null$5(ExecutionContext.java:635)
?? ?at java.util.HashMap.forEach(HashMap.java:1288)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.lambda$initializeCatalogs$6(ExecutionContext.java:633)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.wrapClassLoader(ExecutionContext.java:266)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.initializeCatalogs(ExecutionContext.java:632)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.initializeTableEnvironment(ExecutionContext.java:529)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.<init>(ExecutionContext.java:185)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext.<init>(ExecutionContext.java:138)
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:867)
?? ?... 3 more
?

解決方案:

flink-sql-connector-hive.**.jar

hive版本

flink版本

$FLINK_HOME/conf/.yaml

檢查這四個東西中的版本或者設置確保兼容.

總結

以上是生活随笔為你收集整理的Configured default database db1 doesn‘t exist in catalog myhive.的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。