MongoDB BI Connector
Connecting to MongoDB requires the MongoDB BI Connector to be installed on the server. For detailed information, refer to the MongoDB BI Connector Guide.
Follow these steps to add a MongoDB BI Connector connection after installation.
Click "New Data Connection" in the upper right corner of the Data Connection page.
Select "MongoDB BI Connector" from the Data Source types.
Fill in the parameters for the data source connection as required.
- Name: The name of the connection, must be unique.
- Machine Address: The address of the database. If the URL field is filled, the URL will be prioritized.
- Port: The port of the database. If the URL field is filled, the URL will be prioritized.
- Username: The username for the database.
- Password: The password for the database.
- Database: The name of the database. If the URL field is filled, the URL will be prioritized.
- Maximum Connections: The maximum number of connections in the connection pool.
- Authentication Database: The database where the connecting user was created.
- Prefer Database Comment for Dataset Title: Whether to display the table name or table comment as the title. When enabled, the title is displayed; when disabled, the table comment is displayed.
- Data Gateway: Fill in the Data Gateway ID when the connection is made through a data gateway.
- URL: The JDBC URL for the database.
- Hierarchical Loading of Schemas and Tables: When turned off, both schemas and tables are loaded simultaneously. When turned on, schemas and tables are loaded hierarchically, with only schemas loaded during the connection process, allowing the data source to be quickly integrated into the system.
- Show Tables Only from Specified Database/Schema: When this option is selected and the database field is not empty, only tables from that database are displayed.
After filling in the parameters, click the "Verify" button to obtain the verification result (verifying the connectivity between HENGSHI SENSE and the configured data connection; adding is not allowed if the verification is not passed).
Click to execute the preset code, and the preset code corresponding to the data source will pop up. Click the execute button.
Click the "Add" button to add the configured MongoDB BI Connector connection.
Please note
- Parameters marked with * are required, while others are optional.
- When connecting to a data source, the preset code must be executed. Failure to do so will result in certain functions being unavailable during data analysis. Additionally, when upgrading from versions prior to 4.4 to 4.4, the preset code needs to be executed for existing data connections in the system.