Dropping and linking MapReduce components - 7.0

Talend Data Fabric Getting Started Guide

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Data Fabric
task
Data Quality and Preparation > Cleansing data
Data Quality and Preparation > Profiling data
Design and Development
Installation and Upgrade
EnrichPlatform
Talend Administration Center
Talend DQ Portal
Talend Installer
Talend Runtime
Talend Studio
You orchestrate the MapReduce components in the Job workspace in order to design a data transformation process that runs in the MapReduce framework.
  • You have launched your Talend Studio and opened the Integration perspective.

  • An empty Job has been created as described in Creating the MapReduce Job and is open in the workspace.

  1. In the Job, enter the name of the component to be used and select this component from the list that appears. In this scenario, the components are two tHDFSInput components, a tFileInputDelimited component, a tMap component, a tHDFSOutput component and a tFileOutputDelimited component.
    • The tHDFSInput and the tFileInputDelimited components are used to load the movie data and the director data, respectively, from HDFS into the data flow of the current Job.

    • The tMap component is used to transform the input data.

    • The tHDFSOuput and the tFileOutputDelimited components write the results into given directories in HDFS.

  2. Double-click the tHDFSInput component to make this label editable and then enter movie to change the label of this component.
  3. Do the same to label tFileInputDelimited to director.
  4. Right click the tHDFSInput component that is labelled movie, then from the contextual menu, select Row > Main and click tMap to connect it to tMap. This is the main link through which the movie data is sent to tMap.
  5. Do the same to connect the director tFileInputDelimited component to tMap using the Row > Main link. This is the Lookup link through which the director data is sent to tMap as lookup data.
  6. Do the same to connect the tMap component to tHDFSOutput using the Row > Main link, then in the pop-up wizard, name this link to out1 and click OK to validate this change.
  7. Repeat these operations to connect the tMap component to tFileOutputDelimited component using the Row > Main link and name it to reject.

In the workspace, the whole Job looks like this: