Book Image

Pentaho Data Integration Beginner's Guide - Second Edition - Second Edition

By : María Carina Roldán
Book Image

Pentaho Data Integration Beginner's Guide - Second Edition - Second Edition

By: María Carina Roldán

Overview of this book

Capturing, manipulating, cleansing, transferring, and loading data effectively are the prime requirements in every IT organization. Achieving these tasks require people devoted to developing extensive software programs, or investing in ETL or data integration tools that can simplify this work. Pentaho Data Integration is a full-featured open source ETL solution that allows you to meet these requirements. Pentaho Data Integration has an intuitive, graphical, drag-and-drop design environment and its ETL capabilities are powerful. However, getting started with Pentaho Data Integration can be difficult or confusing. "Pentaho Data Integration Beginner's Guide - Second Edition" provides the guidance needed to overcome that difficulty, covering all the possible key features of Pentaho Data Integration. "Pentaho Data Integration Beginner's Guide - Second Edition" starts with the installation of Pentaho Data Integration software and then moves on to cover all the key Pentaho Data Integration concepts. Each chapter introduces new features, allowing you to gradually get involved with the tool. First, you will learn to do all kinds of data manipulation and work with plain files. Then, the book gives you a primer on databases and teaches you how to work with databases inside Pentaho Data Integration. Moreover, you will be introduced to data warehouse concepts and you will learn how to load data in a data warehouse. After that, you will learn to implement simple and complex processes. Finally, you will have the opportunity of applying and reinforcing all the learned concepts through the implementation of a simple datamart. With "Pentaho Data Integration Beginner's Guide - Second Edition", you will learn everything you need to know in order to meet your data manipulation requirements.
Table of Contents (26 chapters)
Pentaho Data Integration Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Best Practices
Index

Running transformations and jobs stored in files


In order to run a transformation or a job stored as a .ktr file or a .kjb file follow these steps:

  1. Open a terminal window.

  2. Go to the Kettle installation directory.

  3. Run the proper command according to the following table:

Task

Windows

Unix-based system

Running a transformation

pan.bat /file:<ktr file name>

pan.sh /file:<ktr file name>

Running a job

kitchen.bat /file:<kjb file name>

kitchen.sh /file:<kjb file name>

Note

When specifying the .ktr or .kjb filename you must include the full path. If the name contains spaces, surround it with double quotes.

Here you have some examples:

  • Suppose that you work with Windows and that your Kettle installation directory is c:\pdi-ce. In order to execute a transformation stored in the file c:\pdi_labs\hello.ktr, you have to type the following commands:

    C:
    cd \pdi-ce
    pan.bat /file:"c:\pdi_labs\hello.ktr"
  • Suppose that you work with a Unix-based system and that your Kettle installation directory is /home/yourself/pdi-ce. In order to execute a job stored in the file /home/pdi_labs/hellojob.kjb, you have to type the following commands:

    cd /home/yourself/pdi-ce
    kitchen.sh /file:"/home/yourself/pdi-ce/hellojob.kjb"

Note

If you have a repository with autologin (see Appendix A, Working with Repositories), as part of the command add /norep. This will avoid the PDI log into the repository.