Configuring and running the Job - 7.1

Processing (Integration)

Version
7.1
Language
English (United States)
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 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
Module
Talend Studio
Content
Data Governance > Third-party systems > Processing components (Integration)
Data Quality and Preparation > Third-party systems > Processing components (Integration)
Design and Development > Third-party systems > Processing components (Integration)
Set up the tRowGenerator, tMap, tWriteJSONField, and the tLogRow components and add a field with a constant value in the tMap component.

Procedure

  1. Create a Standard Job with the following components:
    • tRowGenerator
    • tMap
    • tWriteJSONField
    • tLogRow
  2. Connect the components using the Row > Main connection.
  3. When prompted, add withloop as the output name.
  4. Select tMap and open the Map Editor.
  5. Configure tmap as such:
  6. Ensure that you have added a new field with a constant value. In this scenario, use "x". Save your changes.
  7. Select tWriteJSONField and configure the component with a dummy looping element:
  8. Edit the output schema for tWriteJSONField to have only one field:
  9. In the tWriteJSONField, access the Component > Basic Settings > Group by. Click + to add loop to the Input column, which then automatically populates the Output column with json.
  10. Select the Remove root node checkbox to exclude the dummy loop.
  11. Run the Job to have an output with a single string JSON array.