Hitachi Vantara Pentaho Community Wiki
Child pages
  • Executing Job or Transformation packaged in a zip file
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

When we prefer to design and execute our job/transformation arranged in regular .kjb & .ktr files instead of repository, we usually faced with a couple of problems :

  1. It is quite tedious to move and arrange them in production environment when we reached a quite bunch of the files. 
  2. We will having a file path problem when we execute it remotely using Carte.

And since Kettle use Apache VFSfor all its file system manipulation process, we can take advantage of its ability to access zip file - which is a very popular compression format in several operating system.

Zip Samples

Attached is the sample zip file which contains 1 job and 2 transformation files with very basic operation steps (Generate Rows). The files are :

  1. transformation_1.ktr
  2. transformation_2.ktr
  3. job_1.ktr

In which job_1.kjb call transformation_1.ktr and transformation_2.ktr respectively (Screenshot below).

Then we zip all the 3 files and named it and put it under C:\ETL_PRODUCTION directory.

Execute with Pan / Kitchen

Goto your Kettle installation directory (KETTLE_HOME). Then execute the job/transformation inside the zipped package with the following URI format :

zip://arch-file-uri [! absolute-path ]

So, in our case if we want to execute transformation_1.ktr inside using Pan we do it with the following command :

pan /file:"zip://C:\ETL_PRODUCTION\!transformation_1.ktr"


 pan -file="zip://C:\ETL_PRODUCTION\!transformation_1.ktr"

And with the same manner in executing job job_1.kjb inside the package with the following command :

kitchen /file:"zip://C:\ETL_PRODUCTION\!job_1.kjb"


 kitchen -file="zip://C:\ETL_PRODUCTION\!job_1.kjb"

This article is a complement to PDI Advanced FAQ on VFS usage

  • No labels