Closed mpzrtauio closed 1 year ago
Having the same issue.
I found a solution by downgrading the databricks-sql-connector package, which makes the access to Databricks behind the proxy work in the following combination:
Thanks for reporting this. This regression is caused by databricks-sql-connector as of 2.6.0. For that release we rewrote the Thrift HTTP handler to use a connection pool from urllib3
. That rewrite improved connector performance by about 50% but also meant rewriting our proxy support.
You can downgrade to an older version of dbt-databricks to make proxies work again but of course we'd like to fix the proxy support so you can take advantage of the performance improvements in newer databricks-sql-connector releases.
To debug this, we need to see the actual log messages from databricks-sql-connector
which dbt-databricks doesn't currently surface in any meaningful way. So to proceed with this fix we need to follow these steps:
Hey @susodapop, I've noticed that databricks-sql-connector==2.8.0
fixed the issue with proxies (as mentioned in the release notes).
Is there a chance for a dbt-databricks==1.6.0
release with fixed connector?
@pkupidura dbt-databricks 1.6.3 updates to databricks-sql-connector 2.9.3 👍
Describe the bug
I would like to connect Azure Databricks behind a proxy and it failed. I set http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables. I tested with dbt --debug debug:
I used the exactly same configuration on another VM that is not behind a proxy, and everything worked there.
Steps To Reproduce
Run dbt --debug debug command on VM that is behind proxy and set Databricks connection in profiles.yml
Expected behavior
The 'dbt --debug debug' command produces the following logs, just like what I obtained when running it on the VM that is not behind a proxy:
Screenshots and log output
It can be found above.
System information
The output of
dbt --version
:The operating system you're using (uname -a):
The output of
python --version
: