I am trying to create a report using the mongo connector on iReport designer 4.5.1 (jasper). when i create the connection and test it, it says Test successful and gives me the database that i connected to in mongo.
The issue happens when i try to use the connection in the Report Query in iReport and try to just read the fields before i do anything more complicated. It gives me the following message,
“Error: not talking to master and retries used up”.
When i connect directly to the server i am able to connect and query and part of the reason might be that i do rs.slaveOk() to get data from slave nodes, my question is if i am connecting to mongo via the iReport where can i issue this command or pass it in as a parameter.
I have reviewed the documentation in the following link but was not able to find anything in regards to the same:
http://jasperforge.org/plugins/mwiki/index.php/Bigdatareportingfornosqlandhadoop/MongoDB
Thanks.
You can add ?slaveOk=true or any of the other MongoDB connection string options to the connection URI in iReport, eg: