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.

2 Antworten
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
EXPERTE
beantwortet vor 6 Monaten
  • 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
Akzeptierte Antwort

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

georgy
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen