Normalizing complex records - Cloud

Talend Cloud Pipeline Designer Processors Guide

author
Talend Documentation Team
EnrichVersion
Cloud
EnrichProdName
Talend Cloud
task
Design and Development > Designing Pipelines
EnrichPlatform
Talend Pipeline Designer

Before you begin

  • You have previously created a connection to the system storing your source data.

    Here, an HDFS connection.

  • You have previously added the dataset holding your source data.

    Here, hierarchical data about actors including ID, name, country, etc.

  • You also have created the connection and the related dataset that will hold the processed data.

    Here, a file stored on HDFS.

Procedure

  1. Click ADD PIPELINE on the PIPELINES page. Your new pipeline opens.
  2. Give the pipeline a meaningful name.
    Normalize Actor Records
  3. Click ADD SOURCE to open the panel allowing you to select your source data, here a list of actors stored in HDFS.
  4. Select your dataset and click SELECT DATASET in order to add it to the pipeline.
    Rename it if needed.
  5. Click and add a Normalize processor to the pipeline. The Configuration panel opens.
  6. Give a meaningful name to the processor.
    normalize actors structure
  7. In the Column to normalize fields, type in Actors, as this column contains the hierarchical records you want to normalize.
  8. Enable the Is list and Discard the trailing empty strings options to flatten the data (from an array structure to a record structure) in a list and discard empty ones.
  9. Click SAVE to save your configuration.
  10. Click the ADD DESTINATION item on the pipeline to open the panel allowing to select the dataset that will hold your normalized data.
    Rename it if needed.
  11. (Optional) Look at the preview of the Normalize processor to compare your data before and after the normalizing operation.
  12. On the top toolbar of Talend Cloud Pipeline Designer, select your Run Profile in the list (for more information, see Execution profiles).
  13. Click the run icon to run your pipeline.

Results

Your pipeline is being executed, the records are normalized and the output is sent to the target system you have indicated.