MongoDB Reports

Create Analyzer & Interactive Reports from MongoDB ..

Steel Wheels Inc has customer order information stored in a MongoDB.

Pentaho Data Integration

To make the Use case more interesting, we're going to create a few pipelines in Pentaho Data Integration, that will load files, migrate tables, etc, to a MongoDB running in Docker.

Pentaho Interactive Reporting

The process starts similarly with establishing the MongoDB connection. In Interactive Reporting, you can create reports by dragging and dropping fields from your MongoDB collections directly onto the report canvas. You'll need to first create a metadata layer that translates MongoDB's document structure into a relational-style format that Pentaho can work with. This involves defining how nested documents and arrays should be represented in your reports.

Pentaho Analyzer

You'll need to set up the MongoDB data connection in the Pentaho Server by configuring the MongoDB connector. Once connected, you'll need to create a Mondrian schema that maps your MongoDB collections and fields to a multidimensional model that Analyzer can understand. The schema defines dimensions, measures, and hierarchies based on your MongoDB data structure.

For both reporting tools, it's important to note that performance optimization is crucial when working with MongoDB. This includes creating appropriate indexes in MongoDB to support your reporting queries, and carefully structuring your aggregation pipelines to ensure efficient data retrieval. You may also want to consider using MongoDB's aggregation framework to pre-aggregate data for complex reports.

x

x

For this option, we will guide you through creating a transformation that loads data from different files in your filesystem, and then load them into a MongoDB Collection. Each of these files contains a key that we can use to join data in PDI before we send it to the MongoDB Output step.

Linux

  1. Ensure the Pentaho Server is up and running.

cd
cd /opt/pentaho/server/pentaho-server/
sudo ./start-pentaho.sh
  1. Ensure Pentaho Data Integration is up and running.

cd
cd ~/Pentaho/design-tools/data-integration
./spoon.sh

Create a New Transformation

Files

  1. Select the Design tab in the left-hand-side view.

x

x

x

x

x

x

x

Was this helpful?