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

6 REPLIES 6

Kaniz
Community Manager
Community Manager

Hi @kashy , Could you please file a support ticket with us?

 

kashy
New Contributor III

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

Debayan
Esteemed Contributor III
Esteemed Contributor III

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
Esteemed Contributor III
Esteemed Contributor III

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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!