AWS Glue MySQL connection problem

0

I'm trying to connect my AWS Glue in us-east-2 to my AWS RDS MySQL DB in same region.

I was following this article - https://aws.amazon.com/blogs/big-data/how-to-access-and-analyze-on-premises-data-stores-using-aws-glue/ and getting the following error

Check that your connection definition references your JDBC database with correct URL syntax, username, and password. Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

I have created the security group for glue in default VPC and have chosen the same VPC while defining the JDBC connection in AWS Glue jdbc:mysql:/xxxxxxxxxx.us-east-2.rds.amazonaws.com:3306/{DB_NAME}

Some logs

  • Driver to be used jar:file:/tmp/mysql-connector-java.jar!/ com.mysql.jdbc.Driver
  • Connection url = jdbc:mysql:/xxxxxxxxxx.us-east-2.rds.amazonaws.com:3306/{DB_NAME} SSL certificate =
  • DomainName used for host matching =
  • Driver properties = com.amazonaws.glue.jobexecutor.commands.jdbc.JdbcDriverProperties@e9cc7a4f
  • === Driver com.mysql.jdbc.Driver@4bff1903, Version 8.0 ===
  • Starting connecter. driver com.mysql.jdbc.Driver@4bff1903
  • Attempting to connect with SSL host matching: jdbc:mysql:/xxxxxxxxxx.us-east-2.rds.amazonaws.com:3306/{DB_NAME}
  • Attempting to connect with TLS 1.2 host matching
  • TLS1.2 connection failed: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • TLS 1.2 connection to data store using host matching failed. Retrying with legacy properties.
  • TLS1.2 connection failed: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • TLS 1.2 connection to data store using host matching legacy properties failed.
  • SSL connection to data store using host matching failed. Retrying without host matching. Communications link failure. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • Attempting to connect with SSL: jdbc:mysql:/xxxxxxxxxx.us-east-2.rds.amazonaws.com:3306/{DB_NAME}
  • Attempting to connect with TLS 1.2
  • TLS1.2 connection failed: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
3개 답변
0

Hi @AmerO

I have allowed all traffic in Inbound and Outbound rules of security group associated with AWS RDS instance. I suppose (correct me if I'm wrong), this should not be a problem for glue to access RDS

답변함 6달 전
0

[Updated] On the RDS side, are you allowing the IPs of the GLUE ENI in the Inbound rules for RDS Security Group? You can check the connectivity using VPC Reachability Analyzer on your AWS console. I find this article might be helpful to troubleshoot your issue: https://repost.aws/knowledge-center/glue-test-connection-failed

profile pictureAWS
AmerO
답변함 6달 전
0

@AmerO

Can you help?

답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인