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?

posta un anno fa492 visualizzazioni
2 Risposte
0

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

con risposta un anno fa
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande