O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using temporary files

Occasionally, it is necessary to create intermediate files within a job that are only used during the lifetime of the job. This recipe shows how to use Talend temporary files.

Getting ready

Open the jo_cook_ch04_0030_temporaryFile job.

How to do it...

The steps for using temporary files are as follows:

  1. Open the tCreateFileTemporary component, and change the name to customerTemp_XXXX.
  2. Select the options Remove file when execution is over, and Use temporary system directory.
  3. Open the tempCustomerOut component, and change File Name to ((String)globalMap.get("tCreateTemporaryFile_1_FILEPATH")).
  4. Repeat the steps for the tempCustomerIn component.
  5. Run the job, and you will see that data is written to and read from the temporary file.

How ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required