When I try to create a mongodb datasource in BIRT that connects to mongodb atlas it just times out, how to fix this? - mongodb

I'm trying to create reports in BIRT using data from a mongodb data source hosted in Atlas. I'm using a shard's mongodb:// URI and not a mongodb+srv://. I'm able to connect to this URI from Compass and Intellij, yet birt mongodb data source times out. Is there any way I can fix this?

Related

Unable to connect to Mongo DB Atlas using Mule 4 connector

I am trying to connect to mongodb Atlas using Mule 4 connector but it is throwing below error.
I am able to connect to the database through MongoDB Compass.
Any help with this?
Thanks in advance
I was facing this issue. I could resolve this by upgrading the Mongo DB connector of Mulesoft to version 6.3.0, which takes connection string.
This takes DNS, no need to provide multiple server names & port

How to connect a MongoDb atlas database with Jaspersoft studio

I'm developing a Java Spring boot application with MongoDb database (MongoDB Atlas) and trying to generate reports from backend with Jasper reporting services. I have followed several tutorials to do that. But all of them show how to connect to a local database. Since I'm using MongoDB Atlas I'm wondering how to give Mongo URI while setting up the Data Adapter (See image)
If anyone knows a better approach to generate reports without using Japer reporting, please mention that as well. Thanks in advance!
You need to have mongodb atlas properly setup before you can connect to it.
First click on Database Access under Security in mongo atlas dashboard and create a new user
Then click on Network Access again under Security and whitelist your IP. The following image allows anyone to connect to the db
Finally, go to your cluster and click connect and you will be presented the following dialog. Copy the connection string from it and paste it into your jaspersoft connected interface.
Make sure you replace the <password> with the password of the user created above
That should work!
UPDATE: here is a screenshot of successful connection to jasperreport studio

Pentaho Report Designer can't find MongoDB 's collections while connecting

I am using Pentaho Data Integration (PDI), for writing big data to Mongo DB.
I am going to setup the connection of my NOSQL database to Pentaho Report Designer (PRD). When I am doing that I am able to start the configuration with Host Name and port of Mongo; even PDR can find my DB.
What is the issue? PDR cannot find any collection, which is why I cannot proceed for setting up my data in the tool Report.
I don't understand why.
Anyone have an idea about that?
PDR version 5.1
Mongo 3.2.3
OS Windows

How to Connect Mongodb to tableau

We are still in the development phase.
Our req is parse the XML to JSON and store them as flat files in Mongodb
Then for the analysis we want to use tableau.
Part 1 of the req is done...now i need to connect to tableau.
Versions we have are
Mongo 3.2
Tableau 9.1
I have googled and couldn't find any steps to integrate tableau with mongodb.
I also saw Mongodb has released a connector but there is no Windows BI connector.
Now do we need to migrate to Enterprise version for tableau connectivity.
Many thanks for the inputs
Detailed Instructions (for Windows), using localhost server of mongoDB:
1) Installation: Install Tableau, MongoDB, and MongoDB BI Connector for Tableau.
2) From the command prompt, you will want to serve your mongoDB instance as well as the mongoDB_sql server needed to connect to Tableau MongoDB BI Connector. Add mongoDB and mongoDB BI Connector bin's to your system path, for example: C:\Program Files\MongoDB\Server\3.6\bin\ and 2) C:\Program Files\MongoDB\Connector for BI\2.3\bin\.
3) Serve your local mongoDB server. Example command: mongod. (Let's assume it is served on localhost:27017.
4) Create a schema of the database you want Tableau to integrate with. Command to do this: mongodrdl --out <path_that_you_want_to_save_schema_to> /db:<name_of_database>
5) Validate the schema, and serve your local server of mongoDB as an SQL server (Tableau expects this server to be running). Command to do this: mongosqld --schema <path_to_schema> (** this will typically serve to localhost:3307)
6) You can now go to Tableau, under connectors, click on the MongoDB BI Connector, and enter localhost for the server, and 3307 for the port. (assuming in step 5 you have validated that the sql server is running on localhost with port 3307).
I hope this helps, these exact steps worked well for me.
The mongo biconnector is implemented as a multicorn (python) based Foreign Data Wrapper imbedded in the supplied postgresql server. Tools are provided to set up the postgresql "biuser" user, to create the collection to table mappings from data sampling, and to import the resultant schema into postgresql. The postgresql database contains non-materialized views corresponding to the (flattened) mongo collections. Access is through the postgresql server using standard postgresql jdbc/odbc drivers.
I think run mongodb bi connector in docker ubuntu/centos is a choice if the connector does not support windows, and tableau does not support linux, that's a question.
There is an example of create bi connection in www.mongodb.com/tableau with mongosqld
Hope this would work well for your issue
I have described our way connecting to data in MongoDB Community Edition to Tableau. First creat an API to your DB, then Web Data Connector to Tableau (it's HTML and JS files), after you can use WDC Connector in Tableau to connect to your URL.
Here is the detailed description how we did it: https://medium.com/#katya.neulinger/tableau-web-data-connector-to-mongodb-c1477d7d5ac9

Wildfly datasource - MongoDB

Sorry for the basic question. I'm totally new to Wildfly and MongoDB (in fact, I am new to nosql also).
I need to know, is that possible to add MongoDB datasource in wildfly? If yes, then how can I do that?
I have done few tutorials using MySQL and Postgres, it seems like it works very well with those DBs. However, when I tried using MongoDB driver, it's not working as expected.
There is a JDBC driver available for MongoDB from Unity you can download it here. Using it should be able to create a Datasource on MangoDB as well as fire standard SQL queries too.
The database class name will be mongodb.jdbc.MongoDriver and the database url will be of the format jdbc:mongo://<serverName>/<databaseName>