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
feita há 6 meses364 visualizações
2 Respostas
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
ESPECIALISTA
respondido há 6 meses
  • 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
Resposta aceita

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

georgy
respondido há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas