Search icon
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
Getting Started with Pentaho Data Integration Getting Started with Transformations Creating Basic Task Flows Reading and Writing Files Manipulating PDI Data and Metadata Controlling the Flow of Data Cleansing, Validating, and Fixing Data Manipulating Data by Coding Transforming the Dataset Performing Basic Operations with Databases Loading Data Marts with PDI Creating Portable and Reusable Transformations Implementing Metadata Injection Creating Advanced Jobs Launching Transformations and Jobs from the Command Line Best Practices for Designing and Deploying a PDI Project

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...
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}