Linking the components - 7.3

Global variable

Version
7.3
Language
English
Product
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 Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Custom code components (Integration) > Global variable components
Data Quality and Preparation > Third-party systems > Custom code components (Integration) > Global variable components
Design and Development > Third-party systems > Custom code components (Integration) > Global variable components
Last publication date
2024-02-21

Procedure

  1. In the Integration perspective of the Studio, create an empty Map/Reduce Job from the Job Designs node in the Repository tree view.
    For further information about how to create a Map/Reduce Job, see Talend Big Data Getting Started Guide .
  2. In the workspace, enter the name of the component to be used and select this component from the list that appears. In this scenario, the components are tAggregateRow, tGlobalVarLoad, tMap, tLogRow and two tHDFSInput (labelled customer in this scenario) components.
  3. Connect one of the tHDFSInput components to tAggregateRow using the Row > Main link and then do the same to link tAggregateRow to tGlobalVarLoad.
    This subJob is used to calculate the average salary and set this average into a reusable variable.
  4. Connect the same tHDFSInput component to the other tHDFSInput component using the Trigger > On Subjob Ok link.
  5. Connect this second tHDFSInput component to tMap using the Row > Main link, then do the same to connect tMap to tLogRow and in the popup dialog box, give this link a name you want to use.
    This subJob is used to select the salaries above the average.