Mongodb schema retrieving

Four Stars

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

Highlighted
Moderator

Re: Mongodb schema retrieving

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

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now