question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set ssl and sslverifcation to catalog or db credentials

See original GitHub issue

Description

Connect into a trino/presto db using catalog and credential file. In datagrip and dbeaver I can connect only with two params: SSL=True SSLVerification=NONE I am trying to find out how to fill this params in catalog definition or credentials file. When I add to con url the pipeline not even start to run.

Context

Id like to get data using catalogs through trino/presto. I installed sqlalchemy-trino and change the con url to trino:// But to connect in database I need to set ssl params even in datagrip or dbeaver. Then I am trying to find out how to pass this params in credentials con. I tried ssl, ssl_context, ssl_verification and a few more but any param that I add I get an error of not recognized params.

kedro.io.core.DataSetError: Failed while loading data from data set SQLQueryDataSet(load_args={}, sql=BIG_QUERY_HERE.
HTTPSConnectionPool(host='presto.address.com', port=8446): Max retries exceeded with url: /v1/statement (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f183810d520>, 'Connection to presto.address.com timed out. (connect timeout=30.0)'))

Your Environment

sqlalchemy==1.4.15 sqlalchemy-trino==0.3.0 psycopg2-binary

  • Kedro version used: 0.17.3
  • Python version used: 3.8.5
  • Operating system and version: Manjaro 21

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Soufrazcommented, Jul 13, 2021

I can try. Hahaha. I’ll send until the end of this week.

1reaction
Soufrazcommented, Jul 13, 2021

For now I built a custom dataset. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set ssl and sslverifcation to catalog or db credentials #801
Description. Connect into a trino/presto db using catalog and credential file. In datagrip and dbeaver I can connect only with two params:
Read more >
How to configure Db2 for SSL with a self-signed certificate and ...
Verify the certificates by running the following: ... Update the Db2 Server registry to add SSL as an allowed communication protocol.
Read more >
Configure SQL Server Database Engine for encryption
In this article. Step 1: Configure SQL Server to use certificates; Step 2: Configure encryption settings in SQL Server; More information.
Read more >
Using SSL/TLS to encrypt a connection to a DB cluster
AWS Region Certificate bundle (PEM) Certificate bundle (PKCS7) US East (N. Virginia) us‑east‑1‑bundle.pem us‑east‑1‑bundle.p7b US East (Ohio) us‑east‑2‑bundle.pem us‑east‑2‑bundle.p7b US West (N. California) us‑west‑1‑bundle.pem us‑west‑1‑bundle.p7b
Read more >
Configuring utilities to authenticate users with an SSL ...
Configure your database server to use an Oracle Wallet that includes an SSL certificate for authentication. Create an Oracle Wallet with the Oracle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found