gpt4 book ai didi

mysql - 无法在 apache drill 中创建新的 mysql 存储

转载 作者:行者123 更新时间:2023-11-29 06:04:59 25 4
gpt4 key购买 nike

我全新安装了 apache drill。我想添加 mysql 存储。我已经把mysql driver到/opt/apache-drill-1.9.0/jars/3rdparty/。我尝试通过网络控制台创建。这是我的 mysql 存储配置:

{
"type": "jdbc",
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost:3306",
"username": "user1",
"password": "passworduser1",
"enabled": true
}

但出现错误:

Please retry: error (unable to create/ update storage)

有人知道怎么解决吗?提前致谢。

PS:我看过这篇文章Unable to create Storage plugin for Mysql Apache Drill , 但它没有用...

最佳答案

下载 mysql-connector-java-5.1.37-bin.jar 连接器并将其放在 jars/3rdparty/ 文件夹中

修改conf/drill-override.conf 在}之前添加以下行:

drill.exec.sys.store.provider.local.path = "mysql-connector-java-5.1.37-bin.jar"

重新启动 drill 并重试。

关于mysql - 无法在 apache drill 中创建新的 mysql 存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42268958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com