cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.