Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Pentaho 3.2 Data Integration: Beginner's Guide

You're reading from  Pentaho 3.2 Data Integration: Beginner's Guide

Product type Book
Published in Apr 2010
Publisher Packt
ISBN-13 9781847199546
Pages 492 pages
Edition 1st Edition
Languages

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
1. Getting Started with Pentaho Data Integration 2. Getting Started with Transformations 3. Basic Data Manipulation 4. Controlling the Flow of Data 5. Transforming Your Data with JavaScript Code and the JavaScript Step 6. Transforming the Row Set 7. Validating Data and Handling Errors 8. Working with Databases 9. Performing Advanced Operations with Databases 10. Creating Basic Task Flows 11. Creating Advanced Transformations and Jobs 12. Developing and Implementing a Simple Datamart 13. Taking it Further Working with Repositories Pan and Kitchen: Launching Transformations and Jobs from the Command Line Quick Reference: Steps and Job Entries Spoon Shortcuts Introducing PDI 4 Features Pop Quiz Answers 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}