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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mongodb schema retrieving

Hi,

I am using Talend Big Data 6.4 and MongoDB 3.4.

 

Is there a way to retrieve data from database other than the authentification one.

The username that I have needs to connect through the admin database. And data I need to retrieve is in another one.

In my db connection in metadata, I get an error when I leave the database field as blank. 

The error I get is :

{ "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}

But when  I connect to the serverr with my username through mongo shell, I can execute this command on admin database:

db.adminCommand( { listDatabases: 1 } )

 

 

PS. I can connect when I set admin as database in connection creation form.

 

Thanks in advance,

Nader

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

You need have the correct rights when using MongoDB with authentication.

We have a similiar jira issue here:https://jira.talendforge.org/browse/TBD-3405 and it has been set as "Is not a Bug ".

Best regards

Sabrina