04-21-2025 12:58 AM
I'm using a Python Notebook with a REST API to access a system outside Databricks, in this case it's to call a SAS program. Identical python code works fine if I call it from jupyter on my laptop, but fails with a timeout when I run it from my Databricks notebook. This leads me to think I've not enabled something between the notebook & the external SAS system. My admin has already whitelisted AzureDatabricks' service tag to SAS (is this the correct approach?), so we assume any outbound connection attempt would succeed. Are there any other actions needed to allow a notebook using python to initiate an outbound connection to an external location ?
Also can you suggest additional logging/debugging tools & techniques I can use to explore what is failing ? I can ping the target url so there appears to be a working route.
Thanks in advance.
04-21-2025 07:33 AM
Can you share the error message that is being received on the notebook?
04-21-2025 08:21 AM
04-21-2025 07:34 AM
Also can you please confirm if you are using a shared cluster for the execution of the same? If yes, could you please try the same test by using a single user cluster?
04-21-2025 08:24 AM
I'm running Dedicated/Single cluster, thanks
04-22-2025 08:36 AM
What happens if you run command in notebook:
nc -vz hostname 443
If it fails to connect this will mean that the firewall or security groups associated with the VPC or VNet are not allowing this connection, you will need to check with your networking team
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now