Professional Documents
Culture Documents
8.0
Last updated: 2022-06-27
Contents
Copyright........................................................................................................................ 3
Copyright
Adapted for 7.3.1. Supersedes previous releases.
Copyright © 2021 Talend. All rights reserved.
The content of this document is correct at the time of publication.
However, more recent updates may be available in the online version that can be found on Talend Help Center .
Notices
All brands, product names, company names, trademarks and service marks are the properties of their respective owners.
End User License Agreement
The software described in this documentation is provided under Talend 's End User Software and Subscription Agreement
("Agreement") for commercial products. By using the software, you are considered to have fully understood and
unconditionally accepted all the terms and conditions of the Agreement.
To read the Agreement now, visit http://www.talend.com/legal-terms/us-eula?utm_medium=help&utm_source=help_content.
3
Introduction to Talend Data Integration
4
Introduction to Talend Data Integration
• the Talend Data Stewardship Web application, where campaign owners and data stewards manage campaigns and
tasks
• The Server block includes:
• a web-based application server, Talend Administration Center, which enables the management and administration
of all projects:
• administration metadata (user accounts, access rights and project authorization for example) is stored in the
Administration database.
• data of project items (Jobs and Routines for example) is stored in the Git server.
• servers used by the Talend Web applications, namely Talend Data Preparation, Talend Data Stewardship, and the
Identity Access Management server which is used to enable Single Sign-On between those applications.
• The Repositories block includes the Git server and the Nexus repository.
The Git server is used to centralize all project items like Jobs shared between different end-users, and is accessible from
the Talend Studio to develop project items and from Talend Administration Center to publish, deploy and monitor the
project items.
The Nexus repository is used to store:
• Software Updates available for download,
• Jobs that are published from the Talend Studio and are ready to be deployed and executed.
• The Talend Execution Servers block includes one or more execution servers, deployed inside your information system.
Talend Jobs are deployed to the Job servers through the Administration Center's Job Conductor to be executed on a
scheduled time, date, or event.
• The Databases block includes the Administration, the Audit and the Monitoring databases.
The Administration database is used to manage user accounts, access rights and project authorization, and so on.
The Audit database is used to evaluate different aspects of the Jobs implemented in projects developed in Talend Studio
with the aim of providing solid quantitative and qualitative factors for process-oriented decision support.
The Monitoring database is used to monitor service calls.
5
Downloading and installing Talend Data Integration
Procedure
1. Save and keep in a safe place the license file contained in the email you received in response to your subscription to
Talend Data Integration.
This file contains your license key, which is required for you to install Talend Data Integration and access each module
of it.
2. Download the Talend Installer, which is the recommended way to install Talend Data Integration, by following the
corresponding link provided in the email:
Talend-Tools-Installer-YYYYMMDD_HHmm-VA.B.C-installer.zip.
The Talend Installer is a wizard-based application that guides you step by step through the installation and
configuration of the Talend Data Integration modules.
Warning:
Mac users can use only the Studio zip file, and not the Talend Installer, to install Talend Data Integration.
Follow the procedure below to install Talend Data Integration via the Talend Installer, using a number of default settings. If
you need any information on the default ports used by the Talend Installer, see the section on port information of the Talend
Data Integration Installation Guide.
Procedure
1. Unzip the Talend Installer package to a local folder, and make sure that the dist file is in the same directory as the
Installer executable.
2. Double-click the executable file of the Talend Installer corresponding to your Operating System to open the Talend
Installation wizard.
3. Click Next to view the License Agreement.
4. Select I accept the agreement and click Next.
The wizard lets you:
• define the installation directory.
• select an installation mode:
• Server: to install all Talend server modules using the default configuration.
• Client: to install only Talend Studio.
• Custom: to install the Talend Studio and the selected server modules with a customized configuration.
6
Downloading and installing Talend Data Integration
Results
Now the selected modules have been installed to your computer, and you can start setting up your Talend Data Integration.
7
Configuring your Talend Data Integration product
Procedure
1. As you installed the product via the Talend Installer, go to the directory named tac.
2. Double-click the executable file: start_tac.bat.
This will launch the servlet container (by default, Apache Tomcat) holding the Talend Administration Center.
3. Once started, log in to Talend Administration Center with the default account: security@company.com/admin.
8
Configuring your Talend Data Integration product
Procedure
1. Click the Users link in the left-hand menu, and in the Users page, click the Add button to create a new user.
2. Fill in the Data panel to the right with your Talend Administration Center and Git credentials.
• From the Type list select a type according to the nature of tasks the user is going to perform.
• Make sure to assign the Administrator, Operation manager and Designer roles to the account, to be able to
manage projects, use the Studio and manage the deployment of artifacts from the Talend Administration Center
respectively.
3. Click Save. The new account you created displays on the list.
4. Log out of the Talend Administration Center and log in again as the user you just created.
5. Click the Projects link in the left-hand menu, and in the Projects page, click the Add button to create a new project.
6. In the Project panel to the right, put the name of your project in the Label field.
7. Click Save. The new project you created displays on the list.
8. Click the Project authorizations link in the left-hand menu, and in the Project authorizations page, give access rights to
the project to the user account you just created.
9. In the Project panel to the left, click the project to select it, and in the User Authorizations panel to the right, click the
Results
Now, you will be able to connect to this project.
Procedure
1. Click the Configuration link in the left-hand menu to finish configuring the Talend Administration Center.
Most of the warnings displaying are due to the fact that you did not start all the modules of the product yet. For
example:
• Commandline/secondary will turn green only if you decide to use and start a secondary commandline, which will
not be the case in the following demo use cases.
• Software Update will turn green if you start the dedicated Talend Artifact Repository, which will not be the case in
the following demo use cases.
• The Commandline/primary section should be green if you installed Talend Administration Center using the Talend
Installer.
2. For the Artifact Repository section of the Talend Administration Center Configuration page, simply start the Talend
Artifact Repository.
9
Configuring your Talend Data Integration product
The Talend Artifact Repository is provided with the Talend Administration Center. So, if you installed the product via
the Talend Installer, you will find it in the tac folder of your installation, in an Artifact-Repository-Nexus-
VA.B.C.D.E subfolder. If you installed the product manually, the Talend Artifact Repository will be available in the
Talend Administration Center package as well (Talend-AdministrationCenter-rXXXXXX-VA.B.C).
3. From the Artifact-Repository-Nexus-VA.B.C.D.E/<ApplicationFolder>/bin directory, launch the
Talend Artifact Repository instance using the following command:
• ./nexus run (Linux)
• nexus.exe /run (Windows)
It will now be running on http://localhost:8081. Replace localhost and 8081 with the IP address and the port of
the server on which you installed the Talend Artifact Repository. You can log in with the default login and password:
admin/Talend123
4. To configure the Job conductor parameters, create two folders in the machine in which Talend Administration Center is
installed by replicating the directories given by default.
5. Configure the Logging parameters by filling in the path to technical and business log files.
The Logstash host and port parameter will get green when you will start the Talend Log Server, by executing
start_logserver.bat (Windows) or start_logserver.sh (Linux), which will not be the case in the following
demo use cases.
6. Configure the Git parameters by filling in the connection information to your Git.
Procedure
1. Click the Servers page in the menu to the left to display the list of servers.
If you installed the product via the Talend Installer, depending on your license, one server, the Jobserver, might already
be installed and will display by default: serv1.
2. Create a new server by clicking Add > Add server. The Execution server form is displayed on the right.
3. Fill in the form as follows and click Save:
• Label: Talend Runtime, for example.
• Host: 127.0.0.1
• Select the Talend Runtime check box.
Procedure
1. Double-click the executable file corresponding to your operating system, for example:
• Talend-Studio-win-x86_64.exe, for Windows.
• Talend-Studio-linux-gtk-x86_64 or Talend-Studio-gtk-aarch64, for Linux.
• Talend-Studio-macosx-cocoa.app or Talend-Studio-macosx-cocoa-aarch64.app, for Mac.
10
Configuring your Talend Data Integration product
2. In the User License Agreement dialog box that opens, read and accept the terms of the end user license agreement to
proceed.
Procedure
1. In the Talend Studio login window, click the Manage Connections button. The connection setup wizard opens.
2. Click the [+] button under the Connections area to create a new connection, select Remote TAC from the Repository
drop-down list, and enter a name for the connection in the Name field.
3. Provide the following Talend Administration Center logon information:
a) In the User Name and User Password fields, enter a user name defined and authorized in the Talend Administration
Center and the corresponding password.
Warning: The logon credential information is case sensitive and must be exactly the same as defined in the
Talend Administration Center.
b) In the Web-app Url field, enter the URL of the Talend Administration Center.
4. Click the Check url button to verify the Talend Administration Center connectivity.
5. If the Talend Administration Center connectivity is successful, click OK to create the remote connection. Otherwise,
check the user name, password, and/or the Talend Administration Center URL according to the prompt message, and try
again.
6. In the Talend Studio login window, select the remote connection you just created from the On connection drop-down
list, select the project you want to open from the Select an existing project list, select the project branch you want to
work on from the Branch list, and then click Finish to open the project.
The quick tour opens.
7. If needed, play the quick tour to get more information on the User Interface of the Studio.
Tip: After your Studio successfully launches, you can access some resources through the links under Resources on
the top bar of the Studio main window to get more information about Talend products.
8. Click the Feature Manager button on the top bar or select Help > Feature Manager from the menu to open the Feature
Manager wizard, and install all features required for your project to work properly.
For more information, see Installing features using the Feature Manager.
11
Performing data integration tasks
Warning: If you are working on a Git-managed project, do not use any of the following reserved key words to name your
Job or Job folder:
• tests
• target
• src
If any of the above-mentioned key words is used in the name of a Job, a Job folder or any level of its parent folders,
changes to your Job or your Jobs in the folder will not get pushed to Git.
Procedure
1. In the Repository tree view, expand the Job Designs node, right-click the Standard node, and select Create folder from
the contextual menu.
2. In the New Folder wizard, name your Job folder getting_started and click Finish to create your folder.
3. Right-click the getting_started folder and select Create Standard Job from the contextual menu.
4. In the New Job wizard, give a name to the Job you are going to create and provide other useful information if needed.
In this example, enter movies in the the Name field.
12
Performing data integration tasks
In this step of the wizard, Name is the only mandatory field. The information you provide in the Description field will
appear as hover text when you move your mouse pointer over the Job in the Repository tree view.
5. Click Finish to create your Job.
An empty Job is opened in the Studio.
Procedure
1. Drop a tFileInputDelimited and a tLogRow component from the Palette onto the design workspace.
You can find the tFileInputDelimited component in the Input group of the File family and the tLogRow component in
the Logs & Errors family in the Palette.
2. Click the tFileInputDelimited component, and drag and drop the arrow icon displayed onto the tLogRow component.
The two components are now connected via a Row > Main connection.
13
Performing data integration tasks
Results
Now you have added the required components to the Job. In the next steps you will need to prepare the required metadata
and configure the Job.
Procedure
1. In the Repository tree view, expand the Metadata node, right-click File delimited, and select Create file delimited from
the contextual menu to open the New Delimited File wizard.
2. In the New Delimited File wizard, enter a name for the file metadata, movies in this example, and other useful
information to better describe your file metadata, and then click Next to go to the next step and define the general
properties of the file.
In this step of the wizard, Name is the only mandatory field. The information you provide in the Description field will
appear as a tooltip when you move your mouse pointer over the file connection.
3. In the File field specify the path of the source file, or click Browse to browse to the file.
14
Performing data integration tasks
The file is loaded, and the File Viewer area displays an abstract of the file, allowing you to check the file consistency,
the presence of header and more generally the file structure.
4. From the Format list, select your operating system, and click Next to parse the file.
5. On the Preview tab, select the Set heading row as column names check box to retrieve the file column names from the
first row, and then click Refresh Preview.
15
Performing data integration tasks
The file preview is refreshed, and the Header check box in the Rows To Skip area is automatically selected, with the
number of header rows to be skipped incremented by 1.
6. If the file contains more than one heading row, which need to be skipped in file parsing, specify the number in this field
and click Refresh Preview again.
7. Click Next to retrieve the file schema.
The Description of the Schema table displays the generated file schema.
8. Name the schema movies_schema and check the file schema and edit it according to your actual needs.
In this example, increase the length of the title and url columns.
16
Performing data integration tasks
Results
You now have the movies file metadata ready for use. Next, you need to apply the created metadata to the component that
reads the source file.
Procedure
1. In the Repository tree view, double-click the Job movies to open it in the design workspace.
17
Performing data integration tasks
You can skip this step if the Job is already open and active in the design workspace.
2. In the Repository tree view, expand Metadata > File delimited, and drag and drop the file connection movies or its
schema movies_schema onto the tFileInputDelimited component in the design workspace. When asked whether to
propagate the changes to the output component, click Yes.
In the Basic settings tab of the Component view, you'll find that all the parameters of the component have been
automatically filled.
3. Double-click the tLogRow component to open its Basic settings tab view.
4. In the Mode area, select the Vertical (each row is a key/value list) option for better readability of long fields on the Run
console.
5. Press F6 or click the Run button on the Run view to execute your Job.
18
Performing data integration tasks
Results
The Run console displays the movies information read from the source file.
Procedure
1. In the Repository tree view, expand the Metadata node, right-click File delimited, and select Create file delimited from
the contextual menu to open the New Delimited File wizard.
2. Enter a name for the file connection, directors in this example, and other useful information to better describe your
file metadata, and then click Next to go to the next step and define the general properties of the file.
19
Performing data integration tasks
3. In the File field specify the path of the source file, or click Browse to browse to the file.
20
Performing data integration tasks
The file is loaded, and the File Viewer area displays an abstract of the file, allowing you to check the file consistency,
the presence of header and more generally the file structure.
4. Select Windows from the Format list, and click Next to parse the file.
5. From the Field Separator list of the File Settings area, select Comma.
21
Performing data integration tasks
22
Performing data integration tasks
Results
You now have the directors file metadata ready for use when you set up the component to read the reference file.
23
Performing data integration tasks
Procedure
1. In the Repository tree view, right-click the Job named moviesmovies and select Duplicate from the contextual menu.
2. In the Duplicate dialog box, enter a name for the new Job, filter_movies in this example, and click OK to validate
the Job creation and close the dialog box.
The Job named filter_movies is created, which is a duplicate of the Job named movies.
The procedure below shows how to add a mapping component by typing the component name directly on the existing
connection.
Procedure
1. In the new Job named filter_movies, select the Row connection linking the tFileInputDelimited and tLogRow
components, and type name of tMap or part of it.
24
Performing data integration tasks
When you start typing the component name, a list of components that match your input appears. You can select a
component to view its description besides the component list.
2. Double-click tMap on the list to added it onto the connection.
The newly added tMap component is now connected with the input component, and a dialog box opens asking you to
give a name to the new output connection.
3. Enter a name for the new output connection, Valid_movies in this example, and click OK. When asked whether you
want to propagate the input schema to the target output component, click Yes.
Results
The tMap component is now added to the Job and connected with the two existing components via Row > Main connections.
25
Performing data integration tasks
Procedure
1. In the Repository tree view, expand Metadata > File delimited, drag and drop the file connection directors or its schema
directors_schema onto the design workspace.
The Components dialog box opens, showing a list of components you can add to the Job from this metadata item.
26
Performing data integration tasks
3. Right-click the newly added tFileInputDelimited component, select Row > Main from the contextual menu, and click the
tMap component.
The tFileInputDelimited is connected to the tMap via a lookup connection now.
4. In the Advanced settings tab of the new tFileInputDelimited component, and select the Trim all columns check box.
Some records of the reference input file directors.txt contains leading white spaces. This option allows you to
remove such white spaces from the lookup input flow when the Job is executed.
27
Performing data integration tasks
Results
You have now all the components in the Job needed for filtering the movies information. Next you'll need to configure
mappings in the tMap component to filter the main input flow against the lookup flow and output the desired information.
Procedure
1. Double-click the tMap component to open the map editor.
The map editor shows three tables, named row1, row2 and Valid_movies in this example, corresponding respectively
to the movies file schema, the directors file schema, and the schema of the output for valid movies information, and
columns in the row1 table are already mapped to the columns in the Valid_movies table.
2. Select the directorID column in the row1 table, and drop it onto the directorID column in the row2 table to create a join
between the two input data sets based on the director IDs.
28
Performing data integration tasks
3. Click the tMap settings button, then click Value field for Join Model, and then click the [...] button that appears to open
the Options dialog box. In the dialog box, select Inner Join and click OK to define the join as an inner join.
With this setting, only the movie records with the director IDs matching with those in the reference file will be passed
to the output.
4. In the Schema editor at the bottom of the map editor, select directorID column of the output schema, Valid_movies in
this example, and click the X button to remove it.
5. Click the [+] button beneath the output table to add a new column, name it directedBy, set its length to 20, and
move it up so that it's between the title and releaseYear columns.
29
Performing data integration tasks
6. Select the directorName column in the row2 table, and drop it to the Expression field corresponding to the directedBy
column in the output table.
A new mapping is created between lookup table and the output table.
7. Click OK to validate the mappings and close the map editor, and click Yes when asked whether to propagate the
changes.
The mapping configurations are saved and the output schema is synchronized to the output component tLogRow.
8. Press F6 or click the Run button on the Run view to execute your Job.
30
Performing data integration tasks
Results
Only movie records with valid director information are displayed on the Run console.
Procedure
1. Create a new Job by duplicating the Job created in the previous scenario, and name the new Job write_movies_t
o_db, and then double-click the Job to open it in the design workspace.
2. Right-click the tLogRow component and select Delete from the contextual menu to delete it.
3. Click where the tLogRow was on the design workspace and type the name of tMySqlOutput or part of it, and then select
and double-click tMySqlOutput on the list to add it onto the design workspace.
When you start typing the component name, a list of components that match your input appears. You can select a
component to view its description besides the component list.
31
Performing data integration tasks
4. Right-click the tMap component, select Row > Valid_movies from the context menu, and click the tMySqlOutput to link
it with the tMap.
The connection name Valid_movies corresponds to the name of the existing output table in tMap.
5. Click the tMap component, and drag and drop the arrow icon displayed onto the design workspace.
A text field and a list of suggested components appear. You can select a component to view its description besides the
component list.
32
Performing data integration tasks
6. In the text field, type the name of tMySqlOutput, select the component on the list, and press Enter to add another
tMySqlOutput component onto the design workspace.
A dialog box appears, asking you to enter a name for the output connection.
7. In the dialog box, enter Invalid_movies and click OK to connect tMap to the second tMySqlOutput component.
Results
Now you have added and connected the database output components you need to write the processed movies information
to a MySQL database. Next, you'll need to configure new mappings in the tMap and database settings in the tMySqlOutput
components.
Procedure
1. Double-click the tMap component to open the map editor.
33
Performing data integration tasks
3. Click the tMap settings button on the Invalid_movies table, click the Value field for Catch lookup inner join reject, and
then click the [...] button that appears to open the Options dialog box. In the dialog box, select true and click OK.
With this setting, any records without director IDs or with director IDs that do not match with those in the reference file
will be passed to this output.
4. Click OK to validate the mappings and close the map editor, and click Yes when asked whether to propagate the
changes.
34
Performing data integration tasks
The mapping configurations are saved and the output schema is synchronized to the output component.
Results
Now you have configured mappings for the rejected output. Next, you'll need to configure the output components to write
the output flows to database tables.
Procedure
1. Double-click the first tMySqlOutput component to open its Basic settings in the Component view.
2. Provide the connection details needed to access your database, including the host name or IP address, port number,
database name, user name and password, in the relevant fields.
When entering your password, you need first to click the [...] button next to the Password field to open a dialog box,
enter your password between double quotation marks in the text field, and then click OK.
3. In the Table field, enter the name of the target database table.
In this example, the table for valid movies information is valid_movies.
4. Select the Action on table and Action on data options according to your needs.
In this example, we want to remove the table first if it already exists and then create an empty one, and use the default
option for the action on data.
5. In the Basic settings of the second tMySqlOutput component, use the same settings as in the first tMySqlOutput except
the name for the target database table.
In this example, the table for invalid movies information is invalid_movies.
6. Press F6 or click the Run button on the Run view to execute your Job.
Results
The movies records with valid director information are saved to the database table named valid_movies, and those without
valid director information are saved to the database table named invalid_movies.
In the Job Conductor page of Talend Administration Center, you define an execution task to gather the script generation,
deployment and execution phases of your data integration Jobs.
35
Performing data integration tasks
Procedure
1. Log in to Talend Administration Center with the account you have created in Setting up your first user and project on
page 8.
2. In the Menu tree view of your Talend Administration Center, click Job Conductor to display the Job conductor page.
3. From the toolbar on the Job Conductor page, click Add > Normal Task to clear the Execution task configuration panel.
4. In the Label field, enter the name you want to give to the task to be triggered. For example, getting_started.
5.
Click the icon to open a Job filter to search for the Job to be run from Job conductor and select it from the filter
using its Latest version.
Once you have selected the Job, the Project, the Branch, the Name, the Version and the Context fields are all
automatically filled with the related information of the selected Job.
6. Select the Regenerate Job on change check box to regenerate the selected Job before task deployment and execution
every time a modification is made to the Job itself.
Note that if you selected Latest version, in case a new version of the Job is created in Studio, the Job will be regenerated
even if you did not select the Regenerate Job on change check box.
7. Select the server on which the task should be deployed.
In this scenario, the server is the Talend Runtime service you have configured in Connecting Talend Runtime Container
to Talend Administration Center on page 10.
36
Performing data integration tasks
What's next?
You have seen how Talend Studio helps you manage your data using Talend Jobs. You have learned how to access your data
via Talend Studio, filter and transform your data, and store the filtered and transformed data in a database. Along the way,
you have learned how to centralize frequently used connections in the Repository and easily reuse these connections in your
Jobs.
To learn more about Talend Studio, see:
• Talend Studio User Guide
• Talend components documentation
To learn more about Talend Administration Center, see Talend Administration Center User Guide.
To ensure that your data is clean, you can try Talend Data Preparation.
To learn more about Talend products and solutions, visit www.talend.com.
37