cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Access RDS Postgres DB via SSH Tunnel

kashy
New Contributor III

Hello, 

How can I configure a foreign catalog connection to use SSH tunneling? I want to be able to use unity catalog

5 REPLIES 5

kashy
New Contributor III

I cannot seem to get the link to raise a support ticket - just diverts me back here!

Debayan
Databricks Employee
Databricks Employee

Hi, in addition to our previous message, you can try https://docs.databricks.com/en/query-federation/foreign-catalogs.html and https://grant-6562.medium.com/connecting-to-sql-server-through-an-ssh-tunnel-with-python-17de859caca....

Also please tag @Debayanโ€‹ with your next response which will notify me, Thank you!

 

kashy
New Contributor III

thanks @Debayan that might work for a JDBC connection but I want to use in a foreign connection with unity catalog which this would not work with

Debayan
Databricks Employee
Databricks Employee

Hi , 

You work with foreign catalogs in the same way that you work with any catalog managed by Unity Catalog:

  • View information about a foreign catalog: see View catalog details.

    In addition to the information that is displayed for standard Unity Catalog catalogs, Catalog Explorer also displays the Connection used by the foreign catalog and the external database or catalog that is mirrored by the foreign catalog.

  • Run read-only queries on tables in foreign catalogs: see Query data.

    When you write queries in Databricks, you must use Apache Spark data types. For a mapping of Spark data types to your external database data types, see the article for your connection type, listed in the table of contents in the left navigation pane of this documentation site.

  • Grant read-only access to data in foreign catalogs: see Manage privileges in Unity Catalog.

kashy
New Contributor III

Hi @Debayan the issue is the lack of support for ssh tunnels - there is no configuration for these on foreign catalog connections

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group