Linking the components - 6.4

Global variable

author
Talend Documentation Team
EnrichVersion
6.4
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 ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
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
EnrichPlatform
Talend Studio

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 Open Studio for 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.