cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Notebook Detached java.net.SocketTimeoutException: Connect Timeout

Mpos
New Contributor II

When I attach a notebook to my cluster and run a cell the notebook is detached.

Cell execution states:Waiting for compute to be ready

Then the attached message is shown.

Notebook detached

Exception execution context: java.net.SocketTimeoutException: Connect Timeout

Any idea how to solve this? 

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz_Fatma
Community Manager
Community Manager

Hi @Mpos

  • Ensure that your network connection is stable and not experiencing any interruptions.
  • Verify that your cluster and notebook are properly connected to the network.
  • Check if your cluster configuration (such as network settings, security groups, or firewall rules) allows communication between the notebook and the cluster.
  • Verify that the cluster is running and accessible
  • Adjust the timeout settings to allow more time for the connection to be established. You can modify the timeout values in your notebook or cluster configuration.
  • Look for any specific timeout-related parameters in your notebook environment.
  • Sometimes, transient network issues can cause timeouts. Retry executing the cell after a few minutes to see if the issue persists.
  • If the problem occurs consistently, proceed to the next steps.
  • If your cluster is under heavy load, consider increasing its resources (such as memory or CPU) to handle notebook execution more efficiently.
  • Monitor resource utilization to identify any bottlenecks.

View solution in original post

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Mpos

  • Ensure that your network connection is stable and not experiencing any interruptions.
  • Verify that your cluster and notebook are properly connected to the network.
  • Check if your cluster configuration (such as network settings, security groups, or firewall rules) allows communication between the notebook and the cluster.
  • Verify that the cluster is running and accessible
  • Adjust the timeout settings to allow more time for the connection to be established. You can modify the timeout values in your notebook or cluster configuration.
  • Look for any specific timeout-related parameters in your notebook environment.
  • Sometimes, transient network issues can cause timeouts. Retry executing the cell after a few minutes to see if the issue persists.
  • If the problem occurs consistently, proceed to the next steps.
  • If your cluster is under heavy load, consider increasing its resources (such as memory or CPU) to handle notebook execution more efficiently.
  • Monitor resource utilization to identify any bottlenecks.

Connect with Databricks Users in Your Area

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