Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Antony4
Contributor
Contributor

Unable to connect Atlas Mongo Database through tMongoDBInput

Hi Team,

I am trying to connect MongoDB atlas through Talend tMongoDBInput components but i am unable to connect it .

I am able to connect atlas Mongo through MongoDB compass tool from same machine. So i believe there is network issue.

Also tried to connect from Replica sets and host name but connection was not established .

Talend Tool version : Talend Open studio for Big data 7.2.1.

Please find the below exception :

Exception in component tMongoDBInput_9 (Get_data_from_mongoDB)

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=xxxxx-srd-00-00.xxxx.xxxxx.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Exception receiving message}, caused by {java.net.SocketException: Connection reset}}, {address=address=xxxxx-srd-00-00.xxxx.xxxxx.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Exception receiving message}, caused by {java.net.SocketException: Connection reset}}]

at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:179)

at com.mongodb.internal.connection.MultiServerCluster.getDescription(MultiServerCluster.java:54)

at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:136)

at com.mongodb.client.internal.MongoClientDelegate.createClientSession(MongoClientDelegate.java:94).

Can you please guide me to resolve this issue ?

Thanks ,

Antoni

Labels (3)
1 Reply
ppatel
Contributor III
Contributor III

Hello Team,

 

First, you need to make sure in Talend if your connection to MongoDB is working or not. To test the connection you can use tMongoDBConnection component.

 

Also please refer to the below KB article and help document from Talend: https://community.talend.com/s/article/Cannot-connect-to-Mongo-Atlas-DB

https://help.talend.com/r/en-US/7.2/studio-user-guide-data-fabric/creating-connection-to-mongodb-database

 

Thanks,

Pooja Patel