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 tContextLoad to load contexts

A second method for defining context variables in different environment is to store them in a file or database external to Talend, and then load them as part of a job.

Getting ready

Open the jo_cook_ch06_0020_loadContextData job.

How to do it...

The steps for using tContextLoad to load contexts are as follows:

  1. Open the tFileInputDelimited component and change the delimiter to, so that it matches the format in the file.
  2. Drag a tContextLoad component onto the canvas and link it to tFileInputDelimited.
  3. Open tContextLoad, and click on the option Print operations.
  4. Unclick Disable warnings.
  5. Run the job.

How it works...

The context file contains name/value pairs in the form of key=value, so setting the delimiter to = means that ...

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