用Python运行Talend作业[英] Running Talend jobs with Python

本文是小编为大家收集整理的关于用Python运行Talend作业的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在尝试自动化一些我必须手动做的事情,因此我可以运行一个python脚本,而不是采取一系列步骤.我想找到一种从python脚本运行talend作业的方法.

我该如何完成?甚至可能吗?

推荐答案

糟糕!对不起.
在工作室中,建立工作以获得可以从命令行启动的自主工作.
从生成的存档中提取文件.
搜索文件夹"脚本/yourjobname".
根据您喜欢的一个或.sh检查一个.bat或.sh的语法. 使用subprocess.call启动JAR文件(或其他从Python执行JAR文件的方法).

希望这会有所帮助.
trf

其他推荐答案

您一旦可以从命令行运行Python脚本,就应该能够使用TSYSTEM组件从TALEND运行它.

本文地址:https://www.itbaoku.cn/post/2313339.html

问题描述

I'm trying to automate some stuff I would otherwise have to do manually, so I can run one python script instead of taking a whole bunch of steps. I want to find a way to run a Talend job from the python script.

How do I accomplish this? Is it even possible?

推荐答案

Oops! sorry.
From the Studio, build the job to get an autonomous job you can launch from command line.
Extract the files from the generated archive.
Search for folder "script/yourJobname".
Check the syntax from one of the .bat or .sh depending of which one you prefer. Launch the jar file using subprocess.call (or other way to execute a jar file from Python).

Hope this helps.
TRF

其他推荐答案

As soon as you can run a Python script from command line, you should be able to run it from Talend using tSystem component.