Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Pentaho Data Integration 8 CE - Third Edition

You're reading from  Learning Pentaho Data Integration 8 CE - Third Edition

Product type Book
Published in Dec 2017
Publisher Packt
ISBN-13 9781788292436
Pages 500 pages
Edition 3rd Edition
Languages

Table of Contents (23) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
1. Getting Started with Pentaho Data Integration 2. Getting Started with Transformations 3. Creating Basic Task Flows 4. Reading and Writing Files 5. Manipulating PDI Data and Metadata 6. Controlling the Flow of Data 7. Cleansing, Validating, and Fixing Data 8. Manipulating Data by Coding 9. Transforming the Dataset 10. Performing Basic Operations with Databases 11. Loading Data Marts with PDI 12. Creating Portable and Reusable Transformations 13. Implementing Metadata Injection 14. Creating Advanced Jobs 15. Launching Transformations and Jobs from the Command Line 16. Best Practices for Designing and Deploying a PDI Project

Using command-line arguments


Besides the use of named parameters, there is another way to provide external values to a Transformation: command-line arguments, that is, arguments that you supply in the command line when you run Pan or Kitchen. In this section, you will learn how to implement the use of command-line arguments in Spoon and how to provide the values in Spoon and also when running Pan.

First, let's create a new version of the Hello World Transformation that we created in Chapter 1, Getting Started with Pentaho Data Integration. The purpose of the Transformation is to read your name from the command line and then write it to the log:

  1. Create a new Transformation.
  2. Drag to the work area a Get System Info step, a UDJE step, and a Write to log step. Link the steps in this order.
  3. Double-click on the Get System Info step and use it to add a field called name that will hold the command line argument 1. Use the following screenshot as reference:

Using command line arguments

  1. Click on OK.
  2. Use...
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 $15.99/month. Cancel anytime}