Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More

Exporting a Job script and executing it outside of Talend Studio

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Exporting a Job script and executing it outside of Talend Studio

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

May 10, 2023 2:34:56 AM

Overview

Talend Jobs support cross-platform execution. You can develop your Job on one machine, export the Job script, and then move it to another machine to execute without any additional configuration except the JDK installation. This article explains how to export the Job script and execute it outside of Talend Studio.

 

Environment

This procedure was written with:

  • Talend Open Studio for Data Integration 8.0.1.20211109_1610
  • JDK version: Oracle JDK build 1.8.0_333
  • Operating system: Windows 10

Talend verified this procedure to be compatible with Talend Open Studio for Data Integration starting from version 4.2.3.

 

Starting from version 6.0, Talend Studio requires a JDK installation to build jobs completely. For more information, refer to Requiring a JDK installation to build jobs starting from version 6.0.
 

 

Procedure

Create an example Job

  1. Create a Job called ExportDemo. This Job generates the current timestamp and appends it to a file (for example, D:/file/out.txt). The detailed Job design is as follows:

    0EM5b00000Arkhw.png

  2. In the tFileOutputDelimited component, check the Append box to append the current timestamp to an existing file whenever the job is executed.

    0EM5b00000Arki1.png

  3. Execute the Job to ensure it works in Talend Studio. Then open the file D:/file/out.txt and verify that the current timestamp was written to the file. For example, the file has a new record as follows:

    10/5/2023  2:32:53 PM

 

Export the Job script

To export the Job script follow these steps:

  1. Right-click the Job name in the Repository view. Select Build Job (or Export Job prior to version 5.4.0) to export the Job script.0EM5b00000Arkgj.png

     

  2. Browse to the location where you exported the Job script. Select the Standalone Job item in the Build type list, then click Finish.
    0EM5b00000ArkhI.png

Execute the Job

  1. Copy the zip file to another machine if necessary. Unzip the zip file.
  2. Open the folder where the executable files (jobName_run.bat/jobName_run .sh) are located.

    For example: D:\file\ExportDemo_0.1\ExportDemo.

  3. Execute the Job: in this example, by clicking the ExportDemo_run.bat file on a Windows system, or by executing the ExportDemo_run.sh file on a Unix/Linux system.
  4. Open the file D:/file/out.txt and verify that the current timestamp was appended.
Version history
Last update:
‎2024-02-09 01:22 PM
Updated by: