For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hello World

Simple transformation to illustrate key concepts ..

Workshop - Hello World

What is a Transformation?

Create a new transformation

Use any of these options to open a new transformation tab:

  • Select File > New > Transformation

  • Use Ctrl+N (Windows/Linux) or Cmd+N (macOS)

hello world.tr

Generate Rows

Generate Rows outputs a specified number of rows. By default, the rows are empty. You can also generate static fields for test data. For example, generate 12 rows for 12 months.

Generate Rows is also useful as a single-row “starter” step.

  1. Start Pentaho Data Integration (Spoon).

  1. In the Design tab, expand the Input category.

  2. Drag Generate Rows onto the canvas.

Tip: You can also search for Generate Rows.

Generate rows
  1. Double-click Generate Rows to open the step properties.

Generate rows - settings

Ensure the following details are configured:

Step name

gr_hello-world

Limit

10

Name

message

Type

string

Value

hello world

Before you close the dialog, preview the data.

  1. Select Preview. The Enter preview size dialog opens.

Preview rows
  1. In Enter preview size, select OK.

  2. Verify the 10 rows. Then select OK to close the preview dialog.

  3. Select OK to close the Generate Rows dialog.

Dummy

The Dummy step does not process records. Use it as a placeholder during development. It is handy when you need a second step to connect.

  1. In the Design tab, expand the Flow category.

  2. Drag Dummy onto the canvas.

dummy step

Hops

Hops define row flow between steps. PDI buffers rows between steps as the transformation runs.

  1. Select the gr_hello-world step.

  2. Hold down the Shift key.

  3. Drag and drop the hop onto the Dummy step.

  4. Release the Shift key.


Add a note

  1. Right-click anywhere on the Spoon canvas.

  2. Select New note.

Notes
Notes - Style

Transformation properties

To view the transformation properties:

  1. Double-click anywhere on the canvas.

transformation properties

Tip: Add details in Extended description.

Run the transformation

Run the transformation locally.

  1. In Spoon, select Action > Run this transformation.

You can also select Run in the toolbar.

The Execute a transformation window opens. For this workshop, keep Local execution.

  1. In the run dialog, open Run options.

Run Options

In the Run Options panel you can set:

  • Run configuration (local, remote, or cluster)

  • Log level

  • Automatically save the transformation

Automatically save transformation

The transformation executes.

Green ticks indicate successful execution

Execution Results

The Execution Results section of the window contains several different tabs that help you to see how the transformation executed, pinpoint errors, and monitor performance.

Logging

Logging tab displays logging information for each of the steps in the transformation.

Step Metrics

Step Metrics tab provides statistics for each step in your transformation including how many records were read, written, caused an error, processing speed (rows per second) and more. This tab also indicates whether an error occurred in a transformation step.

Metrics

Metrics can help identify bottlenecks (back pressure). In this example, the transformation took 30 ms. Notice gr_hello-world and Dummy initialize at the same time. Steps run in parallel in separate threads.

Preview data

Preview tab displays the records.


Viewing the Transformation structure

Select the View icon (upper-left). The tree switches to the structure of the transformation.

View

Last updated

Was this helpful?