Creating and using metadata in Talend Studio
In this tutorial, discover how creating and using metadata in Talend Studio can help you save a lot of development time.
This tutorial makes use of a .csv file. If you do not have a
.csv file, click the
Downloads tab and save customers_unordered.csv.
This tutorial makes use of a database. If you do not have a database, click
the Downloads tab and save customers_unordered.sql. You
must import the database into a compatible program.
Understanding metadata in Talend Studio
Talend Studio allows you to create and run Jobs using predefined components. You can configure each component as either a Built-in or a Repository component. A Repository component is saved as metadata.
- is defined in the component,
- applies only to this component,
- cannot be reused with any other component.
- is saved as metadata,
- can be efficiently and consistently reused,
- can be easily maintained because changes to metadata can be propagated to all Jobs that use it.
Creating a Talend Studio project
Creating a project is the first step to using Talend Studio. Projects allow you to better organize your work.
Procedure
Results
Creating a Job to use metadata
Talend Studio projects contain Jobs. In Jobs, you can build workflows through components, which allow you to complete specific actions.
Before you begin
Procedure
Results
Metadata configuration
By configuring metadata, you can configure reusable information across all your Talend Studio components.
Creating a metadata definition
Creating a metadata definition allows you to set up reusable information across all of your components.
Before you begin
-
This tutorial makes use of a .csv file. If you do not have a .csv file, click the
Downloads tab and save customers_unordered.csv.
- This tutorial also makes use of another
delimited file. If you do not have another delimited file, click
the
Downloads tab and save directors.txt.
Procedure
Results
Configuring a component through metadata
Configuring a component through metadata allows you to configure the component with predefined information.
Before you begin
Procedure
Results
Creating a metadata definition from a database
In Talend Studio, you can fetch a metadata definition from a database, making the best use of your existing resources.
Before you begin
This tutorial makes use of a database. If you do not have a database, click
the Downloads tab and save customers_unordered.sql. You
must import the database into a compatible program.
Procedure
Results
Using metadata to read a database and displaying the results
You can read and manage databases in Talend Studio, allowing you to integrate them into your data management workflows.
Before you begin
This tutorial makes use of a database. If you do not have a database, click the
Downloads tab and save customers_unordered.sql. You must import the database into a compatible program.
- You must have created a metadata definition from a database (see Creating a metadata definition from a database).
Procedure
- In the Repository, expand .
-
Drag-and-drop a database metadata on the Designer.
- In the Designer, add a tLogRow component.
-
Right-click the tDBInput component.
- Optional: In the tLogRow component, select the Table Mode.
- In the Run view, click Run.