How to connect a Presto database to MySQL

随声附和 提交于 2019-12-24 03:59:11

问题


Is it possible to make joins between two tables from two different Presto catalogs? Assume I have a product table in MySQL and another table sales_order in hive; can I join them? If yes, then how can I specify the catalog for MySQL and what would my query look like?


回答1:


EDIT: Since v0.76 Presto adds a MySQL connector and a PostgreSQL connector.

For now, prestodb is not capable to connect to a relational database like mysql. More info in presto FAQ:

Does Presto connect to MySQL / PostgreSQL / Oracle?

Not yet. We have a basic JDBC connector in development. Note that this is for connecting to an external JDBC database. Presto already includes a JDBC driver that allows Java applications to connect to Presto.



来源:https://stackoverflow.com/questions/21166694/how-to-connect-a-presto-database-to-mysql

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