AWS Datalake Glue Connection timeout SQL Server

0

Hi TEam, Me ew to AWS Data lake configuration. As per the doc, it refers to create the Glue connection which will be internally used by AWS BluePrint. My database is running on EC2 instance of different AWS accounts.

I have setup the connection using jdbc with connection string "jdbc:sqlserver://SRV_IP:1433;database=db_name" and "jdbc:sqlserver://SRV_IP:1433;database=db_name", but the test connection failed with following error:

Check that your connection definition references your JDBC database with correct URL syntax, username, and password. The TCP/IP connection to the host SRV_IP, port 1433 has failed. Error: "Connection timed out: no further information. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".

Following already configured/tested,

  1. The connection security group has inbound traffic for port,
  2. the subnet used in connection has the route table points to NAT gateway, 3)Able to connect the DB over the internet hence no issue with db/ec2 security group.

Please advise. me referring: https://aws.amazon.com/blogs/big-data/integrating-aws-lake-formation-with-amazon-rds-for-sql-server/ Except the DB is self-managed on AWS EC2.

REgards, Nikhil Shah

  • Is that connection using the same VPC the DB is in, another VPC or no VPC at all for the Glue job?

已提問 1 年前檢視次數 492 次
2 個答案
0

Hi Gonzalo, Both Glue and ec2 are in separate accounts. So in different vpc.

已回答 1 年前
0

Glue cannot connect to a public API without a NAT gateway on the VPC it runs on.
You could run Glue without a VPC since you say SQL Server has a public IP.
Or use a private ip to access the SQL Server (starting by 10, 172 or 168) and then do the peering between the VPCs

profile pictureAWS
專家
已回答 1 年前

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

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

回答問題指南