0

I am facing below error message while running the python code(ML model) in the python databricks notebook

ConnectException: Connection refused (Connection refused) Error while obtaining a new communication channel

ConnectException error: This is often caused by an OOM error that causes the connection to the Python REPL to be closed. Check your query's memory usage. Spark tip settings

1 Answer 1

1

The driver may be experiencing a memory bottleneck, which is a frequent cause of this issue. When this occurs, the driver has an out of memory (OOM) crash, restarts often, or loses responsiveness. Any of the following factors might be the memory bottleneck's cause:

  • For the load placed on the driver, the driver instance type is not ideal.
  • Memory-intensive procedures are carried out on the driver.
  • The same cluster is hosting a large number of concurrent notebooks or processes.

Please try below options

  • Try increasing driver-side memory and then retry.
  • You can look at the spark job dag which give you more info on data flow.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.