Registering a MongoDB Data Source¶
Before querying data from an external MongoDB through a data federation channel for analysis, you need to register the data source to specify the data connection and the JDBC connection information to the source database.
This topic describes the steps to register a MongoDB data source in EnOS.
In the EnOS Management Console, click Data Source Registration from the left navigation menu.
Click Add Data Source and provide information for the following.
Data Source Type: Select MongoDB.
Data Source Name: Enter a name for the data source. The maximum length is 50 characters and can be a combination of the following characters.
- a through z
- A through Z
- 0 through 9
- _ (underscore)
Data Source Description: Enter a description for the data source.
Host Name or IP Address: Enter the host name or IP address where the database is hosted.
Database Name: Enter the name that uniquely identifies the database.
Port: Enter the port to access the database. EnOS will use the IP address, database name, and port to establish the JDBC connection from EnOS to the database.
Username: Enter the user name for accessing the database.
Password: Enter the password of the user name.
Click Test to test the data source connection.
Click Done to save the configuration.
The data source will be shown in the Data Source Registration table.
When the connection is successfully established, you can follow the steps below to query data from the external MongoDB through a data federation channel.
- Create a read channel through Data Federation and add the registered MongoDB data source as one of the data sources of the channel. For more information, see Creating a Channel.
- Start the data federation channel and read data from the MongDB through authorized applications. For more information, see Reading and Writing Data.