โ12-18-2024 08:06 AM
Hello,
I try to access an API via a python script.
I have access using postman. But if I try to access it via python in databricks, it will not work (timeout).
Here is my code:
Best regards,
Daniel
โ12-18-2024 09:54 AM
Unfortunately no because this is not being blocked by Databricks, this is being blocked by a firewall or security group at the cloud level
โ12-18-2024 08:10 AM
Are you running this from a notebook? if yes can you run bash command:
%sh
nc -vz prod-api.xsp.cloud.corpintra.net 443
I want to confirm your cluster is able to reach the endpoint.
โ12-18-2024 08:22 AM
yes, i use it from a notebook.
C:\Windows>nc -vz prod-api.xsp.cloud.corpintra.net 443
Der Befehl "nc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
โ12-18-2024 08:31 AM
is "nc" a linux command? I use windows...
โ12-18-2024 08:33 AM
Sorry I am confused, you mentioned that you are running this in a notebook, this inside Databricks and running it through a cluster? if this is the case the command needs to be ran inside the notebook, you can add a new cell from it.
โ12-18-2024 08:44 AM
sorry for confusing... i missunderstood your question.... now I got it.
running this command in a notebook in databricks shows no result.... it is "loading" endlessly... I only can interrupt it....
โ12-18-2024 08:44 AM
now it shows:
nc: connect to prod-api.xsp.cloud.corpintra.net (53.13.186.164) port 443 (tcp) failed: Connection timed out
โ12-18-2024 08:51 AM
ok that means that your subnet for clusters in the cloud deployment is not allowing connections to this host on port 443, you will need to check with your cloud administrator or network team to allow this traffic
โ12-18-2024 09:26 AM
hmm... not good... is it not possible to configure this in azure databricks by myself?
โ12-18-2024 09:54 AM
Unfortunately no because this is not being blocked by Databricks, this is being blocked by a firewall or security group at the cloud level
โ12-19-2024 05:34 AM
Nevertheless: Thank you very much for helping me!
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