Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click tMongoDBConnection to open its Basic settings view.
  2. From the DB Version list, select the MongoDB version you are using.
  3. In the Server and Port fields, enter the connection details.
    In the Database field, enter the name of the MongoDB database.
  4. Double-click tFixedFlowInput to open its Basic settings view.
    Select Use Inline Content (delimited file) in the Mode area.
    In the Content field, enter the data to write to the MongoDB database, for example:
    1;Andy;Open Source Outlook;Open Source,Talend;Talend, the leader of the open source world...
    3;Andy;ELT Overview;ELT,Talend;Talend, the big name in the ELT circle...
    2;Andy;Data Integration Overview;Data Integration,Talend;Talend, the leading player in the DI field...
  5. Double-click tMongoDBOutput to open its Basic settings view.
    Select the Use existing connection and Drop collection if exist check boxes.
    In the Collection field, enter the name of the collection, namely blog.
  6. Click the [...] button next to Edit schema to open the schema editor.
  7. Click the [+] button to add five columns in the right part, namely id, author, title, keywords and contents, with the type as Integer and String respectively.
    Click to copy all the columns to the input table.
    Click Ok to close the editor.
  8. The columns now appear in the left part of the Mapping area.
    For columns author, title, keywords and contents, enter their parent node post. By doing so, those nodes reside under the node post in the MongoDB collection.
  9. Double-click tMongoDBInput to open its Basic settings view.
    Select the Use existing connection check box.
    In the Collection field, enter the name of the collection, namely blog.
  10. Click the [...] button next to Edit schema to open the schema editor.
  11. Click the [+] button to add five columns, namely id, author, title, keywords and contents, with the type as Integer and String respectively.
    Click OK to close the editor.
  12. The columns now appear in the left part of the Mapping area.
    For columns author, title, keywords and contents, enter their parent node post so that the data can be retrieved from the correct positions.
  13. In the Sort by area, click the [+] button to add one line and enter id under Column.
    Select asc from the Order asc or desc? column to the right of the id column. This way, the retrieved records will appear in ascending order of the id column.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!