How to generate a Job from a Job script - 6.5

Talendジョブスクリプトリファレンス

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
task
ジョブデザインと開発 > ジョブデザイン
EnrichPlatform
Talend CommandLine
Talend Studio
You can generate a Job from a Job script either using the graphical interface of your Talend Studio, or using the Talend CommandLine, the equivalent of Talend Studio without GUI.

Generating a Job using the graphical interface

Procedure

  1. In the Repository tree view, expand the Code > Job Scripts nodes.
  2. Right-click the Job script you want to generate a Job from, and select Generate Job from the contextual menu.

Results

A Job with the same name as the Job script is created in the Job Designs node of the Repository tree view.

Generating a Job using the Talend CommandLine

Procedure

  1. Launch the Talend CommandLine.
  2. Connect to your repository with the initLocal or initRemote command.

    For example:

    initRemote http://localhost:8080/org.talend.administrator -ul admin@company.com -up admin

    The parameter values are given as examples and need to be replaced with your actual information (port, credentials). For more information on how to use these commands, see the help provided in the Talend CommandLine.

  3. Connect to your project and branch/tag with the logonProject command. If you do not know the name of your project or branch/tag, type in the listProject -b command first.

    For example:

    logonProject -pn di_project -ul admin@company.com -up admin -br branches/v1.0.0

    The parameter values are given as examples and need to be replaced with your actual information (project/branch/tag name, credentials). For more information on how to use this command, see the help provided in the Talend CommandLine.

  4. Type in the following command to generate a Job from your Job script:
    createJob NameOfJob -sf path\yourJobscript.jobscript

Results

The Job is created in your CommandLine workspace in the process folder: commandline-workspace\YourProjectName\process.