简体   繁体   中英

AWS Glue Python Shell script timing out

I am trying to connect to and read an on-premise data source using an AWS Glue Python Shell job. I am using Pygresql (which comes bundled on Glue) and Pandas. Everything works locally.

But when I push this job up to Glue, the database connections all timeout. Why is this happening? Do I need to do something magic with VPCs?

我想您需要使用VPC设置创建Glue连接并将其附加到Glue作业。

Note that pygresql SQL query doesn't work in python shell. Recommended is postgresql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM