tMongoDBConnection options to replica set

Highlighted
Five Stars

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.

Moderator

Re: tMongoDBConnection options to replica set

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

 

--
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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now