2. ETL Metadata Injection 2
David Fombella Pombal
BI Consultant, Technical Developmental Editor and
Pentaho Community Guy
About me
3. ETL Metadata Injection 3
Introduction
•The ETL Metadata Injection step is capable of injecting
step metadata into a template transformation. So
instead of statically entering ETL metadata in a step
dialog, you pass it at run-time. It is possible to solve
repetitive ETL workloads like loading of text files, data
migration and so on.
4. ETL Metadata Injection 4
Problem description
•We need to load cost files containing a dynamic header
•Budget files contain 12 months information
•Forecast files contain between 1 and 12 months
•3 fixed columns containing Entity, Account and Cost Centre
12. ETL Metadata Injection 12
Non-Native Metadata Injection
Metadata Injection is one of the single most powerful
features of PDI. However it only some steps support it. But
as PDI has 100s of steps, more being added weekly, there’s
always going to be a scenario where the step you want to
Inject doesn't support it.
So what do you do? Use the API. The API is how PDI itself
sets the metadata for a step.
So the steps are:
1. Open the transformation file
2. Find the step(s) we want to change
3. Configure it accordingly
4. Save the file