12-01-2022 06:24 AM
I am trying to invoke a REST service from Databrcisks notebook using python programming. It is working fine before enabling Unity Catalog but after enabling it (In another environment) it is not working and never giving any response and not showing any logs to check the issue.I ran the below code multiple times and the maximum time I ran was 20 hours it is still running and no response as of now.
My question here is what would be the problem with the below code?
Why there is no response?
Where we can check logging info or something to troubleshoot the issue?
Is this issue with some kind of security or certificate validation or Unity catalog or something else?
Any help/input here is really appreciated.
%python
import requests
#File download URL1
api_url_1 = "Direct URL1"
#File download URL2
api_url_2 = "Server URL"
print("before call")
response = requests.get(api_url_1,verify=False,stream=False)
print("after call")
print(response.status_code)
print(response.content)
Note that nc -vz <SERVER_NAME> <PORT_NUMBER> for both services are working
Thanks for your response
12-01-2022 07:54 PM
12-01-2022 11:08 PM
It is connecting to other available load balancer servers but is not able to connect to hosted in-house servers or local servers(localhost or service running on a particular machine with in a network). Not sure if it requires any configuration at databricks side to connect if yes, please let me know
12-02-2022 02:31 AM
Please raise a support request to databricks.
01-30-2023 08:52 AM
I suspect the problem could be caused by the cluster mode. What type of cluster or what access mode do you use for your cluster?
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