a week ago
I'm trying to call api in databricks notebook .But while calling api inside databricks notebook it is giving error saying "403" forbidden.
I think it seems issue with IP address
can any one help me to know which IP of databricks need to be whitelisted in order to call api and where can I find it.
a week ago
Might be worth adding what public cloud you are on and if you are using secure cluster connectivity
a week ago
@jacovangelder My databricks workspace is hosted in AWS so I tried to add the region,Inbound and outbound IP address But it is not working
a week ago - last edited a week ago
I don't know your enterprise setup, but it could be that the AWS firewall is blocking the outbound request too. Just whitelisting the AWS Databricks ranges in the application you're posting to might not be enough.
Edit: actually no that can't be the case because a 403 is remote server error.
You might have only whitelisted the control plane IPs and not the compute plane (cluster/VM ip's)
Which IP's did you use?
a week ago
@jacovangelder yes, I have whitelisted control plane IP's inbound and outbound.
ap-south-1 65.0.37.64/28, 13.232.248.161
a week ago
@jacovangelder
can you please let me know where can I get compute IP address
a week ago
You can find it in the Spark Master UI settings in the cluster configuration.
Or you can run %sh ifconfig.
Do keep in mind you might want to take a range because this most likely changes everytime you spin up your cluster.
a week ago
@jacovangelder
will try this thank you
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!