获取Databricks集群的IP地址。

huangapple go评论56阅读模式
英文:

How to Obtain the IP address of Databricks Cluster

问题

我试图在Databricks和SFTP服务器之间建立连接。然而,在我能够连接之前,我需要通知SFTP管理员Databricks集群的IP地址,以允许通过IP地址访问。因此,有人可以告诉我如何获取集群的IP地址吗?

英文:

I am trying to setup a connection from Databricks to an SFTP server. However, before I can connect I will need to let the administrators of the SFTP the ip address of the Databricks cluster to allow access via the ip address. Therefore, can someone let me know how to obtain the ip address of the cluster?

答案1

得分: 1

这取决于SFTP服务器的位置 - 在内部网络内还是在您的网络外部。

如果是前者(内部SFTP),那么您可以提供管理员私有子网的IP范围 - 集群的IP地址可能会随时间而变化。

如果是外部SFTP服务器,请在笔记本中运行%sh curl -s ifconfig.me,它将提供NAT网关的地址。但在这种情况下,它将由部署在Azure上的多个资源共享。此外,NAT网关可能具有多个IP地址 - 在这种情况下,只需向您的网络管理员提问。

英文:

It depends on where the SFTP server is located - in the internal network on outside of your network.

If former (internal SFTP), then you can give admins IP range of the private subnet - IP addresses of the cluster may change over the time.

if it's external SFTP server, then just do %sh curl -s ifconfig.me in the notebook, and it will give you address of the NAT gateway. But in this case, it will be shared by multiple resources deployed on Azure. Also, NAT gateway may have multiple IPs - in this case just ask your network admin.

huangapple
  • 本文由 发表于 2023年5月25日 17:39:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76330888.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定