ETL Job connection timeout exception when running,

1

I created connections to RDS and Redshift in AWS Glue connections. Both connections worked when running Test Connection and Crawler. I see that once in a while RDS connection test fails throwing a Network Failure message.

When I run the ETL Jobs using the connections it throws "org.postgresql.util.PSQLException: The connection attempt failed. (Caused by java.net.SocketTimeoutException: connect timed out)" . Not sure why its happening.

  • The role used for connection has all the access needed for Glue, Rds, and Redshift.
  • The security group permission is added and configured correctly so the Glue can access data.

I use a RDS aurora-postgresql-13 rds instance.

georgy
已提問 6 個月前檢視次數 364 次
2 個答案
1

When creating a connection in glue that requires access to an RDS on a VPC you will need to set a subnet that’s routable to the RDS instance.

For this you need to define the subnet and security group for the glue job. Have you enabled outbound rules on this security group?

The RDS instance also has a security group which will need to allow inbound access from the glue job.

Both subnets the glue job and Rds instance is hosted on requires routes to be able to route traffic to one another.

Also ensure no NACLs block access either.

profile picture
專家
已回答 6 個月前
  • Ya, I have done all that. It was just failing intermittently yesterday. I created new connections with the same configuration and changed my RDS instance type to non-ARM processor then it started working.

0
已接受的答案

Changed my RDS instance type to a non-ARM processor and created a new connection with the same configuration and it worked.

georgy
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南