Skip to content

Glue Mongo connection not working

0

I am trying to create a connection from AWS Glue to MongoDB, but when I test the connection it fails with error: "Check that your connection definition references your Mongo database with correct URL syntax, username, and password. Exiting with error code 30". I know that my connection parameters are correct because I can connect with the same host, port, database, user name, and password from another client application (Mongo Compass). And I know that my VPC configuration should be correct too because I have another connection in the Glue, to connect to the PostgreSQL database on-premise with public IP, that works just fine. I need to use this connection in my ETL job.Can anyone help me to connect MongoDB from Glue.

  • Its still a problem. getting following error while doing a test connection with a mongo db in EC2 instance =>

    Driver to be used jar:file:/tmp/mongo.jar!/ MongoDriver
    Check that your connection definition references your Mongo database with correct URL syntax, username, and password.
    Exiting with error code 30
    

    Please let me know if any one is successful in implementing it.

asked 5 years ago991 views

3 Answers
0

I am using MongoDB Atlas cluster and AWS Glue and I am unable to connect from AWS Glue to MongoDB atlas

This StackOverflow discussion "https://stackoverflow.com/questions/64300562/connecting-to-mongodb-from-aws-glue" says AWS have problems on their side with SSL certificates with ETA to fix in January 2022.

Is this problem been solved?

answered 4 years ago

0

Has this been fixed yet, i am experiencing the same issue?

answered 2 years ago

0

I am experiencing the same issue with a DocumentDB connection in AWS Glue.

when testing the connection, the following error is logged to CloudWatch: ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

and in the CloudWatch, Glue/testconnection log group the following error is logged: Driver to be used jar:file:/tmp/mongo.jar!/ MongoDriver Check that your connection definition references your Mongo database with correct URL syntax, username, and password. Exiting with error code 30

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.