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]

질문됨 한 달 전55회 조회
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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • 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
답변함 한 달 전

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

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

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

관련 콘텐츠