I get an error when I do the glue connection test. I don't know if it's a JDBC error or what kind of error it is.

0

connection is trying to connect to postgreSQL RDS. Information like endpoint, username, password is well written. It might be timeout, given the spinning when trying to connect. But I don't know the exact cause.

The logs identified by CloudWatch are as follows.

2024-09-02T11:39:21.305Z ERROR StatusLogger Unrecognized format specifier [d]

ERROR StatusLogger Unrecognized format specifier [d] 2024-09-02T11:39:21.309Z ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.

ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern. 2024-09-02T11:39:21.309Z ERROR StatusLogger Unrecognized format specifier [thread]

ERROR StatusLogger Unrecognized format specifier [thread] 2024-09-02T11:39:21.309Z ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.

ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern. 2024-09-02T11:39:21.309Z ERROR StatusLogger Unrecognized format specifier [level]

已提问 1 个月前51 查看次数
2 回答
0

Heyy, It looks like your Glue connection to the PostgreSQL RDS is failing, and the CloudWatch logs are showing errors related to logging configuration rather than connection specifics. Here’s a quick checklist to diagnose the issue:

  1. Endpoint & Credentials: Double-check that the RDS endpoint, username, and password are correct.

  2. Network Configuration: Ensure that your Glue job has access to the RDS instance. Verify that the security groups and VPC settings allow communication between Glue and RDS.

  3. JDBC URL: Make sure the JDBC URL is correctly formatted for PostgreSQL. It should look something like jdbc:postgresql://<endpoint>:<port>/<database>.

  4. Timeout Issues: Check if there are any network issues or firewall rules that might be causing a timeout.

  5. CloudWatch Errors: The errors in CloudWatch (Unrecognized format specifier) are related to logging configuration and might not be the root cause of your connection issue. Ensure your logging configuration is correct and compatible with your Glue setup.

check this for reference dox https://github.com/aws-samples/aws-glue-samples https://docs.aws.amazon.com/glue/latest/dg/what-is-glue.html https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前
  • Thank you for your answer. But I haven't solved it yet.

    1. Accessed via pgAdmin4 from outside. DB access information is correct.

    2. How do I check if security group and VPC settings allow communication between Glue and RDS?

    • Glue connection and RDS are on the same VPC and have set up the same available area.
    • Subnets are public subnets.
    1. The connection URL is automatically entered based on the RDS instance I selected.

    2. Public access is also allowed for RDS, and it is a VPC, AZ such as the blue connection.

    3. I don't know the cause of the error.

0

I am getting the exact same error when trying to connect to RDS PostgreSQL from Glue.

Kevin
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则