Book Image

Learning Pentaho Data Integration 8 CE - Third Edition

Book Image

Learning Pentaho Data Integration 8 CE - Third Edition

Overview of this book

Pentaho Data Integration(PDI) is an intuitive and graphical environment packed with drag-and-drop design and powerful Extract-Tranform-Load (ETL) capabilities. This book shows and explains the new interactive features of Spoon, the revamped look and feel, and the newest features of the tool including transformations and jobs Executors and the invaluable Metadata Injection capability. We begin with the installation of PDI software and then move on to cover all the key PDI concepts. Each of the chapter introduces new features, enabling you to gradually get practicing with the tool. First, you will learn to do all kind of data manipulation and work with simple plain files. Then, the book teaches you how you can work with relational databases inside PDI. Moreover, you will be given a primer on data warehouse concepts and you will learn how to load data in a data warehouse. During the course of this book, you will be familiarized with its intuitive, graphical and drag-and-drop design environment. By the end of this book, you will learn everything you need to know in order to meet your data manipulation requirements. Besides, your will be given best practices and advises for designing and deploying your projects.
Table of Contents (23 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Managing files


One of the main tasks that you can do with PDI is to manage files: create folders, move files, unzip files, and more. Some of these tasks are very simple to implement and also quite intuitive, as, for example, creating a folder. Other tasks are a bit more elaborated and there are a couple of ways to implement them.

When we speak about performing tasks, it's highly probable that we end up creating a Job. This is true for most of the tasks related to file management. There are, however, some tasks that can also be done with transformations. In the next subsections, we will explain both cases and we will also explain when you should choose one over the other.

Creating a Job that moves some files

Now we will create a sample Job that moves some files from one folder to another. For this exercise, let's suppose that we have a folder with the following files:

ARTIST_1.MP3
ARTIST_2.MP3
ARTIST_3.MP3
ARTIST_4.MP3
error_2.png
error-jira.png
error-vpn.png
MySongs.mp3
SONG_2.MP3
THEBESTSONG...