unable to query on RDBMS using apache drill

烈酒焚心 提交于 2019-12-01 09:12:37

The correct way to add storage plugin for MySQL:

{
  "type": "jdbc",
  "driver": "com.mysql.jdbc.Driver",
  "url": "jdbc:mysql://<IP>",
  "username": "root",
  "password": "root",
  "enabled": true
}

noticed url instead of uri.

After adding plugin, query can be done using:

select * from mysql.classicmodels.`customers`;

where classicmodels is Database name & customers table name.

Apologies for bumping out. I've got a similar issue while creating Storage/Configurations. When including the configurations under plugin creation, it says a Unable to create/update storage. Did you encounter this issue while creating a storage plugin? I followed the docs from drill

EDIT:

Drill does test connection on the fly when creating the plugin. The machine wasn't up at the time of creating the plugin. When the machine was back, it worked.

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