Book Image

Pentaho 3.2 Data Integration: Beginner's Guide

Book Image

Pentaho 3.2 Data Integration: Beginner's Guide

Overview of this book

Pentaho Data Integration (a.k.a. Kettle) is a full-featured open source ETL (Extract, Transform, and Load) solution. Although PDI is a feature-rich tool, effectively capturing, manipulating, cleansing, transferring, and loading data can get complicated.This book is full of practical examples that will help you to take advantage of Pentaho Data Integration's graphical, drag-and-drop design environment. You will quickly get started with Pentaho Data Integration by following the step-by-step guidance in this book. The useful tips in this book will encourage you to exploit powerful features of Pentaho Data Integration and perform ETL operations with ease.Starting with the installation of the PDI software, this book will teach you all the key PDI concepts. Each chapter introduces new features, allowing you to gradually get involved with the tool. First, you will learn to work with plain files, and to do all kinds of data manipulation. Then, the book gives you a primer on databases and teaches you how to work with databases inside PDI. Not only that, you'll be given an introduction to data warehouse concepts and you will learn to load data in a data warehouse. After that, you will learn to implement simple and complex processes.Once you've learned all the basics, you will build a simple datamart that will serve to reinforce all the concepts learned through the book.
Table of Contents (27 chapters)
Pentaho 3.2 Data Integration Beginner's Guide
Credits
Foreword
The Kettle Project
About the Author
About the Reviewers
Preface
Index

Time for action – customizing the hello world file with arguments and parameters


Let's create a more flexible version of the job you did in the previous section.

  1. Create a new transformation.

  2. Press Ctrl+T to bring up the Transformation properties window.

  3. Select the Parameters tab.

  4. Add a named parameter HELLOFOLDER. Insert chapter10 as the default value.

  5. Click on OK.

  6. Drag a Get System Info step to the canvas .

  7. Double-click the step.

  8. Add a field named yourname. Select command line argument 1 as the Type.

  9. Click on OK.

  10. Now add a Formula step located in the Scripting category of steps.

  11. Use the step to add a String field named message. As Formula, type "Hello, " & [yourname] & "!".

  12. Finally, add a Text file output step.

  13. Use the step to send the message data to a file. Enter ${LABSOUTPUT}/${HELLOFOLDER}/hello as the name of the file.

  14. Save the transformation in the transformations folder you created in the previous tutorial, under the name hello_world_param.ktr.

  15. Open the hello_world.kjb job you created...