cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

org.apache.http.conn.ConnectTimeoutException: What does this mean and how can we resolve it.

cmilligan
Contributor II

My team has run into getting this error pretty frequently on one of our larger jobs. I've set out retry policy to 5 and that seems to fix it and keep the job going. It seems like it's unable to pick up the task immediately but can after it's completed with some of the other tasks running at the same time.

We share our cluster as part of a larger team and have jobs running constantly but this seems to be the only one that fails this way. Is there anything we can do to resolve getting this error so much?

1 ACCEPTED SOLUTION

Accepted Solutions

Aviral-Bhardwaj
Esteemed Contributor III

Hey @Coleman Milliganโ€‹ ,

I also faced this type of issue many times

you can add the below configuration in your cluster and it should work.

spark.executor.heartbeatInterval 60s

spark.network.timeout 120s

For more details, you can explore this doc - https://spark.apache.org/docs/latest/configuration.html

you will get all details about the above 2 configuration

If you like my answer, please select it as the best answer and upvote it

Thanks

Aviral Bhardwaj

AviralBhardwaj

View solution in original post

1 REPLY 1

Aviral-Bhardwaj
Esteemed Contributor III

Hey @Coleman Milliganโ€‹ ,

I also faced this type of issue many times

you can add the below configuration in your cluster and it should work.

spark.executor.heartbeatInterval 60s

spark.network.timeout 120s

For more details, you can explore this doc - https://spark.apache.org/docs/latest/configuration.html

you will get all details about the above 2 configuration

If you like my answer, please select it as the best answer and upvote it

Thanks

Aviral Bhardwaj

AviralBhardwaj

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