Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

mysql - Unable to query Presto database using Dbvisuallizer- Error Executing Query

We are trying to connect to presto using Dbvisualizer . and execute some queries . Catlog we are using is mysql .

  • Presto is installed in the linux server . presto cli is working fine in the linux . Started presto in linux .
  • Mysql is also installed in the linux machine . We are able to access mysql in windows using Dbvisualizer.
  • Created a mysql connector catalog for Presto. Successful in querying data of mysql using Presto-cli as presto --server localhost:8080 --catalog mysql --schema tutorials

DBvisualizer is installed in the Windows machine . I'm able to access mysql and execute queries . Presto also connected in Dbvisualizer . But we are unable to query data . When we try to run a query . It is giving us Error Executing Query .

enter image description here

There is not much information available online , We dont know what we are missing here , Can Someone explain me the way to do this . We need to execute queries from windows machine . we also tried from java code using jdbc jar . same exception

Added the Screenshot of Config.properties of the Presto Installation . Any property more to be added here? enter image description here . Any suggestion is appreciated . Thanks

question from:https://stackoverflow.com/questions/66066169/unable-to-query-presto-database-using-dbvisuallizer-error-executing-query

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It seems like you haven't installed any way to authenticate to use Presto. The authentication that exists on your MySQL instance is not used to authenticate users that access your Presto cluster.

There is a critical security vulnerability in Presto where "authenticated users can bypass authorization checks by directly accessing internal APIs". This has only been resolved in the Trino (formerly PrestoSQL) distribution so I recommend you use Trino if you plan on running a secured cluster in production.

Your options on Trino are, LDAP authenticator, Password authenticator, and Kerberos authenticator (don't recommend unless you already use Kerberos). Configure these first before trying to use SSL/TLS on your server.

You can also find help you with any further questions for setting up a secure cluster on the Trino slack channel.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...