Hi @Sadam97 ,
As you are able to telnet to the MongoDB node's IP from the Databricks notebook, it means that network connectivity exists between Databricks and the MongoDB cluster. This confirms that the issue is likely related to DNS resolution or how MongoDB hosts are being addressed, rather than network access itself.
From a Databricks notebook or the GKE cluster, run a DNS query (e.g., nslookup
or dig
) to ensure the MongoDB hostnames resolve to the correct internal IP addresses. If DNS fails, you may need to configure a DNS server in your GKE cluster that can resolve the MongoDB private addresses.
Thanks!