Unable to create Storage plugin for Mysql Apache Drill

夙愿已清 提交于 2019-12-11 13:39:32

问题


With help from the documentation : http://drill.apache.org/docs/rdbms-storage-plugin/ I've been trying to create a storage plugin for Mysql in Apache Drill, I tried multiple jdbc drivers : mysql-connector-java-5.1.39-bin , sqlserverjdbc but I always get the error:

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

my configuration is as follows :

{
"type":"jdbc",
"driver":"mysql-connector-java-5.1.39-bin",
"url":"jdbc:mysql://localhost:3306",
"username":"root",
"password":"password",
"enabled": true 
}

Does anyone know why it doesn't work and how to fix it please ? Thanks in adcance

PS: I've seen this post SQL Server Storage Plugin not Working but didn't help


回答1:


As per docs add this plugin.

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

NOTE: Make sure you added mysql-connector jar in <drill-directory>/jars/3rdparty



来源:https://stackoverflow.com/questions/37743443/unable-to-create-storage-plugin-for-mysql-apache-drill

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!