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.
This procedure was written with:
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.
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:
In the tFileOutputDelimited component, check the Append box to append the current timestamp to an existing file whenever the job is executed.
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:
To export the Job script follow these steps:
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.
Browse to the location where you exported the Job script. Select the Autonomous Job item in the Export type list, then click Finish.
Open the folder where the executable files (jobName_run.bat/jobName_run .sh) are located.
For example: D:\file\ExportDemo_0.1\ExportDemo.