Scenario 1: Populating a data warehouse - 6.1

Talend Components Reference Guide

EnrichVersion
6.1
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

The following Java scenario creates a three-component Job that populates a data warehouse. A tMysqlInput component reads your customer data stored in the Customer base. A tMap component allows you to modify this data and the modifications are transmitted to the Leadfact table in the CRM database through a tMysqlOutput component.

Linking the components

  1. Drop the following components from the Palette onto the design workspace: tMysqlInput, tMap, and tMysqlOutput.

  2. Connect the three components using Row > Main links.

Configuring the components

  1. In the design workspace, select tMysqlInput and click the Component tab to define its basic settings.

  2. Set Property Type to Repository and then select the connection to the Customer database that holds the information about your clients. The connection details will display automatically in the corresponding fields.

    Note

    If you have not stored the database connection details in the Metadata entry in the Repository, select Built-in in the property type list and set the connection details manually.

  3. Set Schema to Repository and click the three-dot button to select the schema of the Customer database stored in the Metadata entry.

    Related topics: see Talend Studio User Guide.

  4. In the Table Name field, enter the name of the table holding the information you want to modify, in this example: customers.

  5. Click Guess Query to retrieve all data from your table.

  6. Double-click the tMap component to open the Map Editor. Notice that the Input area is already filled with the metadata of the input component.

  7. Drag the fields in the input zone to the fields in the Leadfact table in the output zone. For more information regarding data mapping, see Talend Studio User Guide.

  8. Click OK to validate the operation.

  9. In the design workspace, select tMySqlOutput and click the Component tab to define its basic settings.

  10. Set Property Type to Repository and then select the connection to the CRM data warehouse. The connection details will display automatically in the corresponding fields

    Note

    If you have not stored the CRM data warehouse connection details in the Metadata entry in the Repository, select Built-in in the property type list and set the connection details manually.

    Related topics: see Talend Studio User Guide.

  11. In the Table Name field, enter the name of the table you want to populate with modified data, in this example: leadfact.

Executing the Job

  1. Press Ctrl + S to save your Job.

  2. Press F6 to run the Job to create and populate the table Leadfact in the CRM data warehouse.