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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMongoDBConnection options to replica set

Hi,

 

I want to specify additional options to tMongoDBConnection like readPreference='secondary'.

 

Is there a way to pass a Connection String URI like

[mongodb://][user: pass@]host1[: port1][,host2[: port2],...][/database][?options] ?

 

Thanks,

Juan.

Labels (4)
1 Reply
Anonymous
Not applicable
Author

Hello,

Are you getting "not master and slaveOk=false" when executing a replica set with ReadPreference = Secondary? What's Mongo DB version are you using?

Best regards

Sabrina