5mn Demo - tMap Essential Features Familiarize yourself with Talend Open Studio for Data Integration.

The 5' demo presents Talend Open Studio for Data Integration's main features. This demo is available in video format on Talend's homepage http://www.talend.com.

In this tutorial, you will learn the tMap features by joining an input file and a database table, and mapping and transforming the data to create a database table.

For ease of use, this tutorial is divided into four segments:
- [5mn Demo - Talend Open Studio for Data Integration Overview]
- [5mn Demo - tMap Essential Features]
- [5mn Demo - Set up a Join]
- [5mn Demo - Export Job Script]


Prerequisites:

To follow this tutorial, you need to download and extract the exampleFile.zip file available at the bottom of this page, in the Download it! section of this tutorial.

Once unzipped, you will get three new files:
- customers_demo5mn.csv, the input file used for the join.
- states_demo5mn.txt, a file containing the data to be loaded in the database table used for the join.
- demo5mn_prerequisite.zip, a zip file containing Jobs to import in the Studio creating the tables to be used for the join from the states_demo5mn.txt and customers_demo5mn.csv files. (To import the two prerequisite Jobs, click the Import items button from the Studio, select the demo5mn_prerequisite.zip in the Select archive file field and select the two Jobs: Customers2DbTable_0.1 and States2DbTable_0.1.)

Once the prerequisite Jobs imported, change the settings of their components to match your configuration and execute them.

Now the two tables: customers and states needed for this tutorial, are created.

Download it!

You want to practice?

Download exampleFile.zip to get the files used for this tutorial.

You can also download tutorialProject.zip containing all the jobs needed to carry out this tutorial.

You can also:
Send it!

Share it!
Next Step: [5mn Demo - Set up a Join]

 


Set the processing component parameters

In the Palette on the right:

Click the Processing family to add the processing component.

Click the tMap component and drop it on the Job Designer between the Customers and the tLogRow components.

Next

In the Job Designer:

Click on the row1 link and move its starting point from the Customers component to the tMap.

To link the Customers to the tMap, right-click on Customers, hold, and drag to the tMap.

Next

In the Job Designer:

Double-click on the tMap to open the tMap editor.

In the tMap editor:

Click Auto map! on the toolbar at the top of the editor to map the columns for the input schema to the columns of the output schema.

Click the row2.lastname column in the row1 table and click [...] to open the Expression Builder.

Next

In the Expression Builder:

You can change the last names of the customers to uppercase.

Select row2.lastname and cut it via Ctrl+X in the Expression area.

In the Category list, click StringHandling and in the Functions list, double-click UPCASE.
StringHandling.UPCASE("Hello") will display in the Expression area.

Paste your selection between the brackets instead of "Hello" to obtain StringHandling.UPCASE(row2.lastname).

Click OK.

Next

In the tMap editor:

Click the row2.id column.

Click the Expression editor tab at the bottom of the editor.

Type row2.id * 5 to multiply each id by five.

Click OK.

Next

Run the Job


In the Job Designer:

Press Ctrl+S to save the Job.

Press F6 to run it.

The Run view displays at the bottom of Talend Open Studio and the console follows the Job execution.

Next
  

The Job is working!

Its reads a delimited file, transforms its data, and displays the result in the console.

Now we will add another input, join the two inputs and map them in a database.

  
  Next Step: [5mn Demo - Set up a Join]

 

    Download it!     Send it!     Share it!

You want to practice?

Download exampleFile.zip to get the files used for this tutorial.

You can also download tutorialProject.zip containing all the jobs needed to carry out this tutorial.

Friends / colleagues may be interested in this tutorial? Send it to them!

You liked this tutorial ? Support it!

[ top ]